File: Makefile

package info (click to toggle)
xpat2 1.07-20
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 3,504 kB
  • ctags: 2,572
  • sloc: ansic: 13,770; perl: 3,068; cpp: 2,935; makefile: 192; sh: 33
file content (71 lines) | stat: -rw-r--r-- 2,087 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
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
71
# Note: Typing 'make' from this level will rebuild xpat2 from scratch.
#       Afterwards, type 'make install' (as root) to install the game
#	in default directories. A manual is in the doc subdirectory.
#	You may run LaTeX (2.09) on it using 'make manual'.
#
#       You may change src/Imakefile for different configurations.
#       But then, you're on your own...
#
#       Should you add / improve translations, please send a copy to
#       Michael.Bischoff@gmx.net for inclusion in future releases.
#	Please ignore any e-mail addresses ending in tu-bs.de, they are
#	no longer valid.

all:
	(cd src && xmkmf && $(MAKE) )

manual:
	(cd doc && $(MAKE) xpat2.ps)

# different install targets: imake default, local, Linux FSSTND
install:
	(cd src && $(MAKE) install)

install.local:
	(cd src && $(MAKE) install.local)

install.fsstnd:
	(cd src && $(MAKE) install.fsstnd)


clean:
	(cd src && xmkmf && $(MAKE) clean)
	(cd doc && $(MAKE) clean)
	rm -f src/Makefile src/xpat2X*
	find . -name "*~" -exec rm \{\} \;

distrib:
	$(MAKE) clean
	(cd ..; tar cvfz xpat2-1.07-src.tar.gz xpat2-1.07)

bindistrib:
	(cd /; tar cvfz $(HOME)/xpat2-1.07-bin.tar.gz var/games/xpat* \
	 usr/games/bin/xpat2 usr/man/man6/xpat2.6 usr/doc/xpat2.dvi \
	 usr/doc/xpat2.lsm usr/games/lib/xpat)

allinterfaces:
# select a subset of Xlib Xaw Xview XQt Xm1 Xm2
# 'make install' will use the last one you selected
# 	mv src/Xpat.tmpl src/Xpat.tmpl.none
	for iface in Xlib Xaw XQt Xm1 Xm2;		\
	  do							\
	  rm -f src/X*.o;					\
	  sed -e "1,50s/undef use$$iface/define use$$iface/"	\
	     < src/Xpat.tmpl.none > src/Xpat.tmpl;		\
	  (cd src && xmkmf && make xpat2 && strip xpat2 &&	\
	     cp xpat2 xpat2$$iface);				\
	  cp lib/XPat.ad.$$iface src/XPat.ad;			\
	done

# targets from Makefile.Linux with preset directories for the SuSE distribution
compile.suse:
	$(MAKE) all \
		XPATLIBDIR=/usr/X11R6/lib/xpat \
		XPATMANDIR=/usr/X11R6/man/man6

install.suse:
	$(MAKE) install \
		XPATLIBDIR=/usr/X11R6/lib/xpat \
		XPATMANDIR=/usr/X11R6/man/man6
	chgrp game /usr/X11/bin/xpat2
	chmod 2755 /usr/X11/bin/xpat2