| @@ -214,9 +214,9 @@ ifdef CONFIG_WIN32 · 213 unmodified lines |
| 214 | 214 | endif |
| 215 | 215 | |
| 216 | 216 | clean: |
| 217 | | − rm -f *~ *.o tcc tcc1 tcct tcc_g tcctest.ref *.bin *.i ex2 \ |
| 217 | + rm -f *~ *.o *.a tcc tcc1 tcct tcc_g tcctest.ref *.bin *.i ex2 \ |
| 218 | 218 | core gmon.out test.out test.ref a.out tcc_p \ |
| 219 | | − *.exe tcc-doc.html tcc.pod tcc.1 libtcc$(LIBSUF) libtcc_test \ |
| 219 | + *.exe *.lib tcc.pod libtcc$(LIBSUF) libtcc_test \ |
| 220 | 220 | tcctest[1234] test[1234].out $(PROGS) win32/lib/*.o |
| 221 | 221 | |
| 222 | 222 | distclean: clean |
| @@ -285,25 +285,11 @@ tcc.1: tcc-doc.texi · 62 unmodified lines |
| 285 | 285 | ./texi2pod.pl $< tcc.pod |
| 286 | 286 | pod2man --section=1 --center=" " --release=" " tcc.pod > $@ |
| 287 | 287 | |
| 288 | | −FILES= Makefile Makefile.uClibc configure VERSION \ |
| 289 | | − README TODO COPYING \ |
| 290 | | − Changelog tcc-doc.texi tcc-doc.html \ |
| 291 | | − tcc.1 \ |
| 292 | | − tcc.c tccelf.c tcctok.h tccasm.c i386-asm.c i386-asm.h \ |
| 293 | | − tcccoff.c coff.h \ |
| 294 | | − i386-gen.c c67-gen.c arm-gen.c \ |
| 295 | | − bcheck.c libtcc1.c \ |
| 296 | | − elf.h stab.h stab.def \ |
| 297 | | − stddef.h stdarg.h stdbool.h float.h varargs.h \ |
| 298 | | − tcclib.h libtcc.h libtcc_test.c \ |
| 299 | | − ex1.c ex2.c ex3.c ex4.c ex5.c \ |
| 300 | | − tcctest.c boundtest.c gcctestsuite.sh texi2pod.pl |
| 301 | | − |
| 302 | | −FILE=tcc-$(VERSION) |
| 288 | +FILE=tcc-$(shell cat VERSION) |
| 303 | 289 | |
| 290 | +# tar release (use 'make -k tar' on a checkouted tree) |
| 304 | 291 | tar: |
| 305 | 292 | rm -rf /tmp/$(FILE) |
| 306 | | − mkdir -p /tmp/$(FILE) |
| 307 | | − cp -P $(FILES) /tmp/$(FILE) |
| 308 | | − ( cd /tmp ; tar zcvf ~/$(FILE).tar.gz $(FILE) ) |
| 293 | + cp -r . /tmp/$(FILE) |
| 294 | + ( cd /tmp ; tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS ) |
| 309 | 295 | rm -rf /tmp/$(FILE) |