aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
blob: 6c50f455e3e3ebfcc5f69afdec296e8d266d14ab (plain)
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

SYSCONF = @SYSCONF@
MANDIR = @MANDIR@
VERSION = @VERSION@

all:
	cd src ; $(MAKE) all

install: all
	cd src ; $(MAKE) install ; cd ..
	install -d $(SYSCONF)
	install -m 644 example.jwmrc $(SYSCONF)/system.jwmrc
	install -d $(MANDIR)/man1
	install -m 644 jwm.1 $(MANDIR)/man1/jwm.1

depend:
	cd src ; $(MAKE) depend

tarball:
	rm -f ../jwm-$(VERSION).tar.bz2 ;
	rm -fr ../jwm-$(VERSION) ;
	cp -r ../jwm ../jwm-$(VERSION) ;
	(cd ../jwm-$(VERSION) && $(MAKE) distclean) ;
	(cd .. && tar -cf jwm-$(VERSION).tar jwm-$(VERSION));
	rm -fr ../jwm-$(VERSION) ;
	(cd .. && bzip2 jwm-$(VERSION).tar)

irix-package: all
	(cd package/irix && $(MAKE))

slackware-package: all
	(cd package/slackware && $(MAKE))

solaris-package: all
	(cd package/solaris && $(MAKE))

clean:
	(cd src && $(MAKE) clean)
	for x in package/* ; do \
		(cd $$x && $(MAKE) clean ) ; \
	done
	rm -rf doc

distclean: clean
	rm -f *~ config.cache config.log config.status config.h ;
	rm -f Makefile src/Makefile jwm.tardist jwm.1 ;
	rm -f Makefile.bak src/Makefile.bak ;
	rm -fr autom4te.cache ;
	rm -fr `find . \( -name .svn -o -name .gdb_history \) -print` ;
	for x in package/* ; do \
		(cd $$x && $(MAKE) distclean ) ; \
	done