File: Makefile

package info (click to toggle)
easychem 0.6-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 928 kB
  • ctags: 517
  • sloc: ansic: 8,993; sh: 2,346; xml: 83; makefile: 65
file content (11 lines) | stat: -rw-r--r-- 352 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
all: preamble.c times.c cm.c cmi.c cmb.c cmbi.c cm_common.c

%.c: %.ps
#	sed -e 's#$$#\\n", file);#' $*.ps | sed -e 's#^#fputs ("#' > $*.c
	sed -e 's/%.*$$//' $*.ps | perl -e 'while(<>){chomp; if (/^ *%/) {print "\n$$_\n";} else {print "$$_ ";}}' | sed -e 's#$$#\\n", file);\n#' | sed -e 's#^#fputs ("#' | sed -e 's/  */ /g' > $*.c


clean:
	-rm *.c