File: Makefile

package info (click to toggle)
webmin-ldap-netgroups 0.17
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 240 kB
  • ctags: 35
  • sloc: perl: 856; makefile: 65; sh: 15
file content (48 lines) | stat: -rw-r--r-- 1,371 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package     = webmin-ldap-netgroups
version     = 0.17

DESTDIR     =

prefix      = /usr
sharedir    = $(prefix)/share/webmin
pkgsharedir = $(sharedir)/ldap-netgroups

pkgcfgdir   = /etc/webmin/ldap-netgroups

INSTALL      = install --mode=755
INSTALL_DATA = install --mode=644

LANGLIST = en fr nl no pt_BR

all:
	# Script package, nothing to build

install: 
	for pl in *.pl; do \
		$(INSTALL_DATA) $$pl $(DESTDIR)$(pkgsharedir)/$$pl ; \
	done
	$(INSTALL) index.cgi $(DESTDIR)$(pkgsharedir)/index.cgi
	$(INSTALL_DATA) *.info* $(DESTDIR)$(pkgsharedir)/
	$(INSTALL_DATA) images/*.gif $(DESTDIR)$(pkgsharedir)/images/
	for lang in $(LANGLIST) ; do \
		$(INSTALL_DATA) lang/$$lang $(DESTDIR)$(pkgsharedir)/lang/ ; \
	done
	$(INSTALL_DATA) help/*.html $(DESTDIR)$(pkgsharedir)/help/
	$(INSTALL_DATA) netgroup.css $(DESTDIR)$(pkgsharedir)/
	$(INSTALL_DATA) config $(DESTDIR)$(pkgcfgdir)/config

# Need webmin-i18n and gettext 
update-i18n:
	po2webmin $(LANGLIST)

clean:

dist:
	$(MAKE) clean
	-debian/rules clean
	rm -rf $(package)-$(version) $(package)-$(version).tar.gz
	mkdir $(package)-$(version)
	rsync --exclude CVS --exclude $(package)-$(version) --exclude 'tmp' --exclude 'debian/files' --exclude 'debian/substvars' -av . $(package)-$(version)
	tar cf $(package)-$(version).tar $(package)-$(version)
	gzip -9 $(package)-$(version).tar
	rm -rf $(package)-$(version)