Created
August 10, 2016 21:33
-
-
Save MagnusTiberius/7a3b63db478ed5c783bf9131312d34e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir src | |
echo '//#include <confg.h> | |
#include <stdio.h> | |
int | |
main (void) | |
{ | |
puts("Hello World!"); | |
//puts("This is " PACKAGE_STRING "."); | |
return 0; | |
}' > src/main.c | |
echo ' | |
This is a readme file | |
' > README | |
echo 'bin_PROGRAMS = hello | |
hello_SOURCES = main.c | |
' > src/Makefile.am | |
echo 'SUBDIRS = src | |
dist_doc_DATA = README | |
' > Makefile.am | |
echo 'AC_INIT([amhello], [1.0], [bug@test.com]) | |
AM_INIT_AUTOMAKE([-Wall -Werror foreign]) | |
AC_PROG_CC | |
AC_CONFIG_HEADERS([config.h]) | |
AC_CONFIG_FILES([ | |
Makefile | |
src/Makefile | |
]) | |
AC_OUTPUT' > configure.ac | |
autoreconf --install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment