Skip to content

Instantly share code, notes, and snippets.

@hhanesand
Created September 8, 2015 13:09
Show Gist options
  • Save hhanesand/8b038f835a276767840b to your computer and use it in GitHub Desktop.
Save hhanesand/8b038f835a276767840b to your computer and use it in GitHub Desktop.
Create makefile
rm GNUmakefile
touch GNUmakefile
echo -e 'include $(GNUSTEP_MAKEFILES)/common.make' >> GNUmakefile
echo -e "TOOL_NAME =" $1 "\n" >> GNUmakefile
echo -e "$1_OBJC_FILES = "$(find -name "*.m" | xargs) >> GNUmakefile
echo -e "$1_HEADER_FILES = "$(find -name "*.h" | xargs)"\n" >> GNUmakefile
echo -e "ADDITIONAL_CPPFLAGS = -Wall -Wno-import" >> GNUmakefile
echo 'include $(GNUSTEP_MAKEFILES)/tool.make' >> GNUmakefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment