Makefile 575 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
BINDIR       = /usr/bin
DOCUMENTROOT = /www/pages
INSTALL      = install
INSTMODE     = 0755
INSTDOCS     = 0644
OWN          = -o root -g root
LN           = ln -sf

# executable scripts will go to $(BINDIR)
EXESCRIPTS   = format_disk.py
DOCS         = format_disk.js format_disk.php

all: $(SCRIPTS) $(DOCS)

install: $(EXESCRIPTS) $(DOCS)
	$(INSTALL) $(OWN) -d $(DESTDIR)$(BINDIR)
	$(INSTALL) $(OWN) -d $(DESTDIR)$(DOCUMENTROOT)
	$(INSTALL) $(OWN) -m $(INSTMODE) $(EXESCRIPTS) $(DESTDIR)$(BINDIR)
	$(INSTALL) $(OWN) -m $(INSTDOCS) $(DOCS) $(DESTDIR)$(DOCUMENTROOT)

clean: