- rm -f *~
-
-zap: clean
- rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
-
-# ------------------------------------------------------------------------------
-# Special target rules
-
-coding.html: coding.sgml
- sgml2html --split=0 $<
-
-funcref.html: funcref.sgml
- sgml2html --split=2 $<
-
-# ------------------------------------------------------------------------------
-# Make the dependencies
-
-.PHONY: depend dep
-depend dep: $(OBJS:.o=.c)
- @echo "Creating dependency information"
- $(CC) -MM $^ > .depend
-
-
+ $(RM) -r ../html ../info
+
+install:
+ $(if $(PREFIX),,$(error variable "PREFIX" must be set))
+ifeq ($(wildcard ../html),../html)
+ $(INSTALL) -d $(DESTDIR)$(htmldir)
+ $(INSTALL) -m0644 ../html/*.* $(DESTDIR)$(htmldir)
+endif
+ifeq ($(wildcard ../info),../info)
+ $(INSTALL) -d $(DESTDIR)$(infodir)
+ $(INSTALL) -m0644 ../info/*.* $(DESTDIR)$(infodir)
+endif
+
+zip:
+ifneq "$(wildcard ../html)" ""
+ @cd .. && zip cc65 html/*.*
+endif
+
+endif # CMD_EXE
+
+all mostlyclean: