1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
# Edited for Debian GNU/Linux.
DESTDIR =
TARGETDIR = $(DESTDIR)/usr/share/php/smarty
DOCPATH = $(DESTDIR)/usr/share/doc/smarty
LIBS = $(wildcard libs/*php) $(wildcard libs/*tpl)
INTERNALS = $(wildcard libs/internals/*php)
PLUGINS = $(wildcard libs/plugins/*php)
TOPFILES = BUGS ChangeLog FAQ NEWS README RELEASE_NOTES TODO QUICK_START
install:
install -d -o www-data -m 755 $(TARGETDIR)/libs
install -d -o www-data -m 755 $(TARGETDIR)/libs/internals
install -d -o www-data -m 755 $(TARGETDIR)/libs/plugins
install -o www-data -m 644 $(LIBS) $(TARGETDIR)/libs
install -o www-data -m 644 $(INTERNALS) $(TARGETDIR)/libs/internals
install -o www-data -m 644 $(PLUGINS) $(TARGETDIR)/libs/plugins
install -d $(DOCPATH)
install -o www-data -m 644 $(TOPFILES) $(DOCPATH)
cp -r demo $(DOCPATH)
cp -r misc $(DOCPATH)
cp -r unit_test $(DOCPATH)
|