Commit 29f0d25b authored by nerrons's avatar nerrons
Browse files

Polish the makefile clean target on mac. Now feel free to make clean, git add . and commit

parent e3080be0
Pipeline #1578 failed with stage
in 0 seconds
......@@ -30,8 +30,11 @@ pd.pc
.svn
packages/linux_make/build/
pd/src/makefile
pd/src/config.h
l2ork_addons/cwiid/defs.mak
CVS
.DS_Store
.vscode/
pd/nw/nw/
\ No newline at end of file
pd/nw/nw/
*.dmg
\ No newline at end of file
......@@ -253,11 +253,14 @@ dmg:
distclean: package_clean
$(MAKE) -C $(packages_src) $(DEST_PATHS) distclean
# We need to do the externals clean after individual cleans in all dists
# because otherwise the individual cleans will produce more garbage...
clean: oldclean externals_clean
clean: package_clean
# This is the original 'clean' target.
oldclean: package_clean
$(MAKE) -C $(packages_src) $(DEST_PATHS) clean
package_clean: darwin_app_clean spotlight_importer_clean
-chmod -R u+w -- $(BUILD_BASE)
-rm -rf -- $(BUILD_BASE)
......@@ -287,6 +290,25 @@ darwin_app_clean:
-rm -rf -- Pd-l2ork-K12.app
-rm -f -- k12-launcher/Info.plist
# This is a temp solution for certain build files that didn't get properly cleaned up
# long ago and got stuck in the git repo.
externals_clean:
-rm -f -- $(cvs_root_dir)/externals/OSCx/*/Makefile
-rm -rf -- $(cvs_root_dir)/externals/moocow/*/common/*
-rm -rf -- $(cvs_root_dir)/externals/moocow/*/a.out.dSYM/*
-rm -f -- $(cvs_root_dir)/externals/zexy/Makefile
-rm -f -- $(cvs_root_dir)/externals/zexy/Makefile.in
-rm -f -- $(cvs_root_dir)/externals/zexy/*/Makefile
-rm -f -- $(cvs_root_dir)/externals/zexy/*/Makefile.in
-rm -f -- $(cvs_root_dir)/externals/zexy/compile
-rm -f -- $(cvs_root_dir)/externals/zexy/config.*
-rm -f -- $(cvs_root_dir)/externals/zexy/depcomp
-rm -f -- $(cvs_root_dir)/externals/zexy/install-sh
-rm -f -- $(cvs_root_dir)/externals/zexy/missing
-rm -f -- $(cvs_root_dir)/externals/zexy/stamp-h1
-rm -f -- $(cvs_root_dir)/externals/zexy/test-driver
-rm -f -- $(cvs_root_dir)/externals/zexy/*.pd
-rm -f -- $(cvs_root_dir)/externals/pdp/pdp_config.h
#==============================================================================#
#
......
......@@ -219,6 +219,8 @@ local-clean:
-rm -f ../obj/* $(PDEXEC) $(BIN_DIR)/pdsend \
$(BIN_DIR)/pdreceive $(BIN_DIR)/pd-watchdog m_stamp.c
-rm -f -- *~
-rm -f config.h
-rm -f s_version.h
-(cd ../doc/6.externs; rm -f *.pd_linux)
-rm -f makefile.dependencies
touch makefile.dependencies
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment