File: Makefile

package info (click to toggle)
ion2 20040729-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,828 kB
  • ctags: 3,466
  • sloc: ansic: 28,432; makefile: 473; sh: 230; perl: 16
file content (34 lines) | stat: -rw-r--r-- 709 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
26
27
28
29
30
31
32
33
34
##
## Ion manual page Makefile
##

# System-specific configuration is in system.mk
TOPDIR=..
include $(TOPDIR)/system-inc.mk

######################################

TARGETS=ion.1 pwm.1

######################################

include $(TOPDIR)/rules.mk

######################################

%.1: %.1.in
	sed 's#ETCDIR#$(ETCDIR)#g; s#DOCDIR#$(DOCDIR)#g;' $< > $@

_install:
	$(INSTALLDIR) $(MANDIR)/man1
	$(INSTALL) -m $(DATA_MODE) ion.1 $(MANDIR)/man1
	$(INSTALL) -m $(DATA_MODE) pwm.1 $(MANDIR)/man1

#
# Awful hack that may not work on the user's system. This is rule is
# supposed to be executed before packaging Ion.
#

ion.1.in.txt: ion.1.in
	man ./ion.1.in|perl -p -i -e 's/.\10//g' > ion.1.in.txt