File: Makefile

package info (click to toggle)
netenv 0.94.3-12
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 360 kB
  • ctags: 98
  • sloc: sh: 958; ansic: 136; makefile: 92
file content (70 lines) | stat: -rw-r--r-- 1,824 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
VERSION="0.94-3"

FILES=netenv math.c Makefile netenv.spec config_netenv
DOC_FILES=README doc

# For Debian:
#DESTDIR=
DESTDIR=debian/netenv
# BINFILES=trpnc
SBINFILES=netenv
CONFFILES=netenv.conf
DOCFILES=README doc/netenv-en.html doc/netenv-de.html doc/netenv-chooser-box.png doc/NEWS doc/changelog doc/netenv-network.opts.patch
EXAMPLEFILES=doc/lulu doc/lulu-office doc/lulu-lavie
EXAMPLEFILES_EXEC=doc/netenv_setup doc/netenv_setup_debian_example doc/edit-ns-preferences
MANFILES=man/netenv.8 # man/trpnc.1
#MANFILES_GZ=man/netenv.8.gz man/trpnc.1.gz
# BINDIR=$(DESTDIR)/bin
SBINDIR=$(DESTDIR)/sbin
CONFDIR=$(DESTDIR)/etc/netenv
DOCDIR=$(DESTDIR)/usr/share/doc/netenv
EXAMPLEDIR=$(DOCDIR)/examples
MANDIRS=$(DESTDIR)/usr/share/man/man8 $(DESTDIR)/usr/share/man/man1
INST_PERMS="--mode=644"

trpnc: math.c
	cc -o trpnc math.c
	strip trpnc
package:
	rm -rf netenv-$(VERSION)
	mkdir netenv-$(VERSION)
	cp -rp $(FILES) $(DOC_FILES) netenv-$(VERSION)
	tar zcvf netenv-$(VERSION).tar.gz netenv-$(VERSION) 

rpmpackage:
	tar zcvf netenv-$(VERSION).tar.gz $(FILES) $(DOC_FILES)

# zipman:
# 	gzip -9 $(MANFILES)

installdirs:
# 	mkdir -p $(BINDIR)
	mkdir -p $(SBINDIR)
	mkdir -p $(CONFDIR)
	mkdir -p $(DOCDIR)
	mkdir -p $(EXAMPLEDIR)
	mkdir -p $(MANDIRS)

install: installdirs # trpnc zipman
# 	install $(BINFILES) $(BINDIR)
	install $(SBINFILES) $(SBINDIR)
	install $(INST_PERMS) $(CONFFILES) $(CONFDIR)
	install $(INST_PERMS) $(DOCFILES) $(DOCDIR)
	install $(INST_PERMS) $(EXAMPLEFILES) $(EXAMPLEDIR)
	install --mode=755 $(EXAMPLEFILES_EXEC) $(EXAMPLEDIR)
	install $(INST_PERMS) man/netenv.8 $(DESTDIR)/usr/share/man/man8



clean:
# 	rm -f trpnc
#	gunzip -q $(MANFILES_GZ)


# The config target doesn't deal with Debian at all, so there's 
# no need to have it in a ready-made Debian package

# config:
# 	@./config_netenv