File: Makefile

package info (click to toggle)
smarty 2.6.14-1etch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 968 kB
  • ctags: 1,325
  • sloc: php: 4,657; makefile: 44
file content (25 lines) | stat: -rw-r--r-- 867 bytes parent folder | download | duplicates (3)
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)