File: Makefile

package info (click to toggle)
intercal 0.20-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 928 kB
  • ctags: 269
  • sloc: ansic: 2,182; lex: 380; makefile: 276; yacc: 245; lisp: 138
file content (32 lines) | stat: -rw-r--r-- 912 bytes parent folder | download | duplicates (2)
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
#
# Utility productions for the INTERCAL distribution
#
VERSION=0.20

dist: intercal-$(VERSION).tar.gz

intercal-$(VERSION).tar.gz:
	sed "s:^:intercal-$(VERSION)/:" <MANIFEST >manifest
	(cd ..; ln -s intercal intercal-$(VERSION))
	(cd ..; tar -czvf intercal/intercal-$(VERSION).tar.gz `cat intercal/manifest`)
	rm ../intercal-$(VERSION) manifest

RPMROOT=/usr/src/redhat
RPM = rpm
RPMFLAGS = -ba
rpm: dist
	cp intercal-$(VERSION).tar.gz $(RPMROOT)/SOURCES;
	cp intercal.spec $(RPMROOT)/SPECS
	cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) intercal.spec	
	cp $(RPMROOT)/RPMS/`arch|sed 's/i[4-9]86/i386/'`/intercal-$(VERSION)*.rpm .
	cp $(RPMROOT)/SRPMS/intercal-$(VERSION)*.src.rpm .



SHAROPTS = -l63 -n intercal -o intercal -a -s esr@snark.thyrsus.com 
shar:
	(cd ..; shar $(SHAROPTS) $(MANIFEST) >intercal-$(VERSION).shar)

clean:
	rm -f intercal-$(VERSION).shar intercal-$(VERSION).tar intercal-$(VERSION).tar.gz