File: Makefile

package info (click to toggle)
wput 0.6.2%2Bgit20130413-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,620 kB
  • ctags: 798
  • sloc: ansic: 6,852; sh: 3,461; makefile: 72; sed: 16
file content (38 lines) | stat: -rw-r--r-- 1,023 bytes parent folder | download | duplicates (6)
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
#wput makefile
PACKAGE     = wput
prefix      = /usr/local
datadir     = $(prefix)/share
mandir	    = $(datadir)/man/man1
exec_prefix = ${prefix}
bindir=${exec_prefix}/bin

all clean:
	cd po && $(MAKE) $(MAKEDEFS) $@
	cd src && $(MAKE) $(MAKEDEFS) $@
	cd doc && $(MAKE) $(MAKEDEFS) $@

win-clean:
	cd src && $(MAKE) $(MAKEDEFS) $@

install: all
	cd po && $(MAKE) $(MAKEDEFS) $@
	mkdir -p $(bindir) 
	mkdir -p $(mandir) 
	install -m0755 wput $(bindir)
	install -m0644 doc/wput.1.gz $(mandir)
	ln -sf $(bindir)/wput $(bindir)/wdel
	install -m0644 doc/wdel.1.gz $(mandir)
	@echo "----------------"
	@echo "Wput and Wdel installed. See 'wput/wdel -h' or 'man wput/wdel' for"
	@echo "usage information."
	@echo "Further documentation is located in the doc/USAGE.* files."
	@echo 
	@echo "Wput is not perfect, so please report any bugs you notice (see BUGS-section"
	@echo "in the manpage)."
	@echo "----------------"
uninstall:
	rm -f $(bindir)/wput
	rm -f $(bindir)/wdel
	rm -f $(mandir)/wput.1.gz
	rm -f $(mandir)/wdel.1.gz