erlang.mk 271 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373
  1. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  2. #
  3. # Permission to use, copy, modify, and/or distribute this software for any
  4. # purpose with or without fee is hereby granted, provided that the above
  5. # copyright notice and this permission notice appear in all copies.
  6. #
  7. # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. .PHONY: all app apps deps search rel relup docs install-docs check tests clean distclean help erlang-mk
  15. ERLANG_MK_FILENAME := $(realpath $(lastword $(MAKEFILE_LIST)))
  16. export ERLANG_MK_FILENAME
  17. ERLANG_MK_VERSION = 94718f7
  18. ERLANG_MK_WITHOUT =
  19. # Make 3.81 and 3.82 are deprecated.
  20. ifeq ($(MAKELEVEL)$(MAKE_VERSION),03.81)
  21. $(warning Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html)
  22. endif
  23. ifeq ($(MAKELEVEL)$(MAKE_VERSION),03.82)
  24. $(warning Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html)
  25. endif
  26. # Core configuration.
  27. PROJECT ?= $(notdir $(CURDIR))
  28. PROJECT := $(strip $(PROJECT))
  29. PROJECT_VERSION ?= rolling
  30. PROJECT_MOD ?= $(PROJECT)_app
  31. PROJECT_ENV ?= []
  32. # Verbosity.
  33. V ?= 0
  34. verbose_0 = @
  35. verbose_2 = set -x;
  36. verbose = $(verbose_$(V))
  37. ifeq ($(V),3)
  38. SHELL := $(SHELL) -x
  39. endif
  40. gen_verbose_0 = @echo " GEN " $@;
  41. gen_verbose_2 = set -x;
  42. gen_verbose = $(gen_verbose_$(V))
  43. gen_verbose_esc_0 = @echo " GEN " $$@;
  44. gen_verbose_esc_2 = set -x;
  45. gen_verbose_esc = $(gen_verbose_esc_$(V))
  46. # Temporary files directory.
  47. ERLANG_MK_TMP ?= $(CURDIR)/.erlang.mk
  48. export ERLANG_MK_TMP
  49. # "erl" command.
  50. ERL = erl +A1 -noinput -boot no_dot_erlang
  51. # Platform detection.
  52. ifeq ($(PLATFORM),)
  53. UNAME_S := $(shell uname -s)
  54. ifeq ($(UNAME_S),Linux)
  55. PLATFORM = linux
  56. else ifeq ($(UNAME_S),Darwin)
  57. PLATFORM = darwin
  58. else ifeq ($(UNAME_S),SunOS)
  59. PLATFORM = solaris
  60. else ifeq ($(UNAME_S),GNU)
  61. PLATFORM = gnu
  62. else ifeq ($(UNAME_S),FreeBSD)
  63. PLATFORM = freebsd
  64. else ifeq ($(UNAME_S),NetBSD)
  65. PLATFORM = netbsd
  66. else ifeq ($(UNAME_S),OpenBSD)
  67. PLATFORM = openbsd
  68. else ifeq ($(UNAME_S),DragonFly)
  69. PLATFORM = dragonfly
  70. else ifeq ($(shell uname -o),Msys)
  71. PLATFORM = msys2
  72. else
  73. $(error Unable to detect platform. Please open a ticket with the output of uname -a.)
  74. endif
  75. export PLATFORM
  76. endif
  77. # Core targets.
  78. all:: deps app rel
  79. # Noop to avoid a Make warning when there's nothing to do.
  80. rel::
  81. $(verbose) :
  82. relup:: deps app
  83. check:: tests
  84. clean:: clean-crashdump
  85. clean-crashdump:
  86. ifneq ($(wildcard erl_crash.dump),)
  87. $(gen_verbose) rm -f erl_crash.dump
  88. endif
  89. distclean:: clean distclean-tmp
  90. $(ERLANG_MK_TMP):
  91. $(verbose) mkdir -p $(ERLANG_MK_TMP)
  92. distclean-tmp:
  93. $(gen_verbose) rm -rf $(ERLANG_MK_TMP)
  94. help::
  95. $(verbose) printf "%s\n" \
  96. "erlang.mk (version $(ERLANG_MK_VERSION)) is distributed under the terms of the ISC License." \
  97. "Copyright (c) 2013-2016 Loïc Hoguin <essen@ninenines.eu>" \
  98. "" \
  99. "Usage: [V=1] $(MAKE) [target]..." \
  100. "" \
  101. "Core targets:" \
  102. " all Run deps, app and rel targets in that order" \
  103. " app Compile the project" \
  104. " deps Fetch dependencies (if needed) and compile them" \
  105. " fetch-deps Fetch dependencies recursively (if needed) without compiling them" \
  106. " list-deps List dependencies recursively on stdout" \
  107. " search q=... Search for a package in the built-in index" \
  108. " rel Build a release for this project, if applicable" \
  109. " docs Build the documentation for this project" \
  110. " install-docs Install the man pages for this project" \
  111. " check Compile and run all tests and analysis for this project" \
  112. " tests Run the tests for this project" \
  113. " clean Delete temporary and output files from most targets" \
  114. " distclean Delete all temporary and output files" \
  115. " help Display this help and exit" \
  116. " erlang-mk Update erlang.mk to the latest version"
  117. # Core functions.
  118. empty :=
  119. space := $(empty) $(empty)
  120. tab := $(empty) $(empty)
  121. comma := ,
  122. define newline
  123. endef
  124. define comma_list
  125. $(subst $(space),$(comma),$(strip $(1)))
  126. endef
  127. define escape_dquotes
  128. $(subst ",\",$1)
  129. endef
  130. # Adding erlang.mk to make Erlang scripts who call init:get_plain_arguments() happy.
  131. define erlang
  132. $(ERL) $2 -pz $(ERLANG_MK_TMP)/rebar/ebin -eval "$(subst $(newline),,$(call escape_dquotes,$1))" -- erlang.mk
  133. endef
  134. ifeq ($(PLATFORM),msys2)
  135. core_native_path = $(shell cygpath -m $1)
  136. else
  137. core_native_path = $1
  138. endif
  139. core_http_get = curl -Lf$(if $(filter-out 0,$(V)),,s)o $(call core_native_path,$1) $2
  140. core_eq = $(and $(findstring $(1),$(2)),$(findstring $(2),$(1)))
  141. # We skip files that contain spaces because they end up causing issues.
  142. core_find = $(if $(wildcard $1),$(shell find $(1:%/=%) \( -type l -o -type f \) -name $(subst *,\*,$2) | grep -v " "))
  143. core_lc = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$(1)))))))))))))))))))))))))))
  144. core_ls = $(filter-out $(1),$(shell echo $(1)))
  145. # @todo Use a solution that does not require using perl.
  146. core_relpath = $(shell perl -e 'use File::Spec; print File::Spec->abs2rel(@ARGV) . "\n"' $1 $2)
  147. define core_render
  148. printf -- '$(subst $(newline),\n,$(subst %,%%,$(subst ','\'',$(subst $(tab),$(WS),$(call $(1))))))\n' > $(2)
  149. endef
  150. # Automated update.
  151. ERLANG_MK_REPO ?= https://github.com/ninenines/erlang.mk
  152. ERLANG_MK_COMMIT ?=
  153. ERLANG_MK_BUILD_CONFIG ?= build.config
  154. ERLANG_MK_BUILD_DIR ?= .erlang.mk.build
  155. erlang-mk: WITHOUT ?= $(ERLANG_MK_WITHOUT)
  156. erlang-mk:
  157. ifdef ERLANG_MK_COMMIT
  158. $(verbose) git clone $(ERLANG_MK_REPO) $(ERLANG_MK_BUILD_DIR)
  159. $(verbose) cd $(ERLANG_MK_BUILD_DIR) && git checkout $(ERLANG_MK_COMMIT)
  160. else
  161. $(verbose) git clone --depth 1 $(ERLANG_MK_REPO) $(ERLANG_MK_BUILD_DIR)
  162. endif
  163. $(verbose) if [ -f $(ERLANG_MK_BUILD_CONFIG) ]; then cp $(ERLANG_MK_BUILD_CONFIG) $(ERLANG_MK_BUILD_DIR)/build.config; fi
  164. $(gen_verbose) $(MAKE) --no-print-directory -C $(ERLANG_MK_BUILD_DIR) WITHOUT='$(strip $(WITHOUT))' UPGRADE=1
  165. $(verbose) cp $(ERLANG_MK_BUILD_DIR)/erlang.mk ./erlang.mk
  166. $(verbose) rm -rf $(ERLANG_MK_BUILD_DIR)
  167. $(verbose) rm -rf $(ERLANG_MK_TMP)
  168. # The erlang.mk package index is bundled in the default erlang.mk build.
  169. # Search for the string "copyright" to skip to the rest of the code.
  170. # Copyright (c) 2015-2017, Loïc Hoguin <essen@ninenines.eu>
  171. # This file is part of erlang.mk and subject to the terms of the ISC License.
  172. .PHONY: distclean-kerl
  173. KERL_INSTALL_DIR ?= $(HOME)/erlang
  174. ifeq ($(strip $(KERL)),)
  175. KERL := $(ERLANG_MK_TMP)/kerl/kerl
  176. endif
  177. KERL_DIR = $(ERLANG_MK_TMP)/kerl
  178. export KERL
  179. KERL_GIT ?= https://github.com/kerl/kerl
  180. KERL_COMMIT ?= master
  181. KERL_MAKEFLAGS ?=
  182. OTP_GIT ?= https://github.com/erlang/otp
  183. define kerl_otp_target
  184. $(KERL_INSTALL_DIR)/$(1): $(KERL)
  185. $(verbose) if [ ! -d $$@ ]; then \
  186. MAKEFLAGS="$(KERL_MAKEFLAGS)" $(KERL) build git $(OTP_GIT) $(1) $(1); \
  187. $(KERL) install $(1) $(KERL_INSTALL_DIR)/$(1); \
  188. fi
  189. endef
  190. define kerl_hipe_target
  191. $(KERL_INSTALL_DIR)/$1-native: $(KERL)
  192. $(verbose) if [ ! -d $$@ ]; then \
  193. KERL_CONFIGURE_OPTIONS=--enable-native-libs \
  194. MAKEFLAGS="$(KERL_MAKEFLAGS)" $(KERL) build git $(OTP_GIT) $1 $1-native; \
  195. $(KERL) install $1-native $(KERL_INSTALL_DIR)/$1-native; \
  196. fi
  197. endef
  198. $(KERL): $(KERL_DIR)
  199. $(KERL_DIR): | $(ERLANG_MK_TMP)
  200. $(gen_verbose) git clone --depth 1 $(KERL_GIT) $(ERLANG_MK_TMP)/kerl
  201. $(verbose) cd $(ERLANG_MK_TMP)/kerl && git checkout $(KERL_COMMIT)
  202. $(verbose) chmod +x $(KERL)
  203. distclean:: distclean-kerl
  204. distclean-kerl:
  205. $(gen_verbose) rm -rf $(KERL_DIR)
  206. # Allow users to select which version of Erlang/OTP to use for a project.
  207. ifneq ($(strip $(LATEST_ERLANG_OTP)),)
  208. # In some environments it is necessary to filter out master.
  209. ERLANG_OTP := $(notdir $(lastword $(sort\
  210. $(filter-out $(KERL_INSTALL_DIR)/master $(KERL_INSTALL_DIR)/OTP_R%,\
  211. $(filter-out %-rc1 %-rc2 %-rc3,$(wildcard $(KERL_INSTALL_DIR)/*[^-native]))))))
  212. endif
  213. ERLANG_OTP ?=
  214. ERLANG_HIPE ?=
  215. # Use kerl to enforce a specific Erlang/OTP version for a project.
  216. ifneq ($(strip $(ERLANG_OTP)),)
  217. export PATH := $(KERL_INSTALL_DIR)/$(ERLANG_OTP)/bin:$(PATH)
  218. SHELL := env PATH=$(PATH) $(SHELL)
  219. $(eval $(call kerl_otp_target,$(ERLANG_OTP)))
  220. # Build Erlang/OTP only if it doesn't already exist.
  221. ifeq ($(wildcard $(KERL_INSTALL_DIR)/$(ERLANG_OTP))$(BUILD_ERLANG_OTP),)
  222. $(info Building Erlang/OTP $(ERLANG_OTP)... Please wait...)
  223. $(shell $(MAKE) $(KERL_INSTALL_DIR)/$(ERLANG_OTP) ERLANG_OTP=$(ERLANG_OTP) BUILD_ERLANG_OTP=1 >&2)
  224. endif
  225. else
  226. # Same for a HiPE enabled VM.
  227. ifneq ($(strip $(ERLANG_HIPE)),)
  228. export PATH := $(KERL_INSTALL_DIR)/$(ERLANG_HIPE)-native/bin:$(PATH)
  229. SHELL := env PATH=$(PATH) $(SHELL)
  230. $(eval $(call kerl_hipe_target,$(ERLANG_HIPE)))
  231. # Build Erlang/OTP only if it doesn't already exist.
  232. ifeq ($(wildcard $(KERL_INSTALL_DIR)/$(ERLANG_HIPE)-native)$(BUILD_ERLANG_OTP),)
  233. $(info Building HiPE-enabled Erlang/OTP $(ERLANG_OTP)... Please wait...)
  234. $(shell $(MAKE) $(KERL_INSTALL_DIR)/$(ERLANG_HIPE)-native ERLANG_HIPE=$(ERLANG_HIPE) BUILD_ERLANG_OTP=1 >&2)
  235. endif
  236. endif
  237. endif
  238. PACKAGES += aberth
  239. pkg_aberth_name = aberth
  240. pkg_aberth_description = Generic BERT-RPC server in Erlang
  241. pkg_aberth_homepage = https://github.com/a13x/aberth
  242. pkg_aberth_fetch = git
  243. pkg_aberth_repo = https://github.com/a13x/aberth
  244. pkg_aberth_commit = master
  245. PACKAGES += active
  246. pkg_active_name = active
  247. pkg_active_description = Active development for Erlang: rebuild and reload source/binary files while the VM is running
  248. pkg_active_homepage = https://github.com/proger/active
  249. pkg_active_fetch = git
  250. pkg_active_repo = https://github.com/proger/active
  251. pkg_active_commit = master
  252. PACKAGES += actordb_core
  253. pkg_actordb_core_name = actordb_core
  254. pkg_actordb_core_description = ActorDB main source
  255. pkg_actordb_core_homepage = http://www.actordb.com/
  256. pkg_actordb_core_fetch = git
  257. pkg_actordb_core_repo = https://github.com/biokoda/actordb_core
  258. pkg_actordb_core_commit = master
  259. PACKAGES += actordb_thrift
  260. pkg_actordb_thrift_name = actordb_thrift
  261. pkg_actordb_thrift_description = Thrift API for ActorDB
  262. pkg_actordb_thrift_homepage = http://www.actordb.com/
  263. pkg_actordb_thrift_fetch = git
  264. pkg_actordb_thrift_repo = https://github.com/biokoda/actordb_thrift
  265. pkg_actordb_thrift_commit = master
  266. PACKAGES += aleppo
  267. pkg_aleppo_name = aleppo
  268. pkg_aleppo_description = Alternative Erlang Pre-Processor
  269. pkg_aleppo_homepage = https://github.com/ErlyORM/aleppo
  270. pkg_aleppo_fetch = git
  271. pkg_aleppo_repo = https://github.com/ErlyORM/aleppo
  272. pkg_aleppo_commit = master
  273. PACKAGES += alog
  274. pkg_alog_name = alog
  275. pkg_alog_description = Simply the best logging framework for Erlang
  276. pkg_alog_homepage = https://github.com/siberian-fast-food/alogger
  277. pkg_alog_fetch = git
  278. pkg_alog_repo = https://github.com/siberian-fast-food/alogger
  279. pkg_alog_commit = master
  280. PACKAGES += amqp_client
  281. pkg_amqp_client_name = amqp_client
  282. pkg_amqp_client_description = RabbitMQ Erlang AMQP client
  283. pkg_amqp_client_homepage = https://www.rabbitmq.com/erlang-client-user-guide.html
  284. pkg_amqp_client_fetch = git
  285. pkg_amqp_client_repo = https://github.com/rabbitmq/rabbitmq-erlang-client.git
  286. pkg_amqp_client_commit = master
  287. PACKAGES += annotations
  288. pkg_annotations_name = annotations
  289. pkg_annotations_description = Simple code instrumentation utilities
  290. pkg_annotations_homepage = https://github.com/hyperthunk/annotations
  291. pkg_annotations_fetch = git
  292. pkg_annotations_repo = https://github.com/hyperthunk/annotations
  293. pkg_annotations_commit = master
  294. PACKAGES += antidote
  295. pkg_antidote_name = antidote
  296. pkg_antidote_description = Large-scale computation without synchronisation
  297. pkg_antidote_homepage = https://syncfree.lip6.fr/
  298. pkg_antidote_fetch = git
  299. pkg_antidote_repo = https://github.com/SyncFree/antidote
  300. pkg_antidote_commit = master
  301. PACKAGES += apns
  302. pkg_apns_name = apns
  303. pkg_apns_description = Apple Push Notification Server for Erlang
  304. pkg_apns_homepage = http://inaka.github.com/apns4erl
  305. pkg_apns_fetch = git
  306. pkg_apns_repo = https://github.com/inaka/apns4erl
  307. pkg_apns_commit = master
  308. PACKAGES += asciideck
  309. pkg_asciideck_name = asciideck
  310. pkg_asciideck_description = Asciidoc for Erlang.
  311. pkg_asciideck_homepage = https://ninenines.eu
  312. pkg_asciideck_fetch = git
  313. pkg_asciideck_repo = https://github.com/ninenines/asciideck
  314. pkg_asciideck_commit = master
  315. PACKAGES += azdht
  316. pkg_azdht_name = azdht
  317. pkg_azdht_description = Azureus Distributed Hash Table (DHT) in Erlang
  318. pkg_azdht_homepage = https://github.com/arcusfelis/azdht
  319. pkg_azdht_fetch = git
  320. pkg_azdht_repo = https://github.com/arcusfelis/azdht
  321. pkg_azdht_commit = master
  322. PACKAGES += backoff
  323. pkg_backoff_name = backoff
  324. pkg_backoff_description = Simple exponential backoffs in Erlang
  325. pkg_backoff_homepage = https://github.com/ferd/backoff
  326. pkg_backoff_fetch = git
  327. pkg_backoff_repo = https://github.com/ferd/backoff
  328. pkg_backoff_commit = master
  329. PACKAGES += barrel_tcp
  330. pkg_barrel_tcp_name = barrel_tcp
  331. pkg_barrel_tcp_description = barrel is a generic TCP acceptor pool with low latency in Erlang.
  332. pkg_barrel_tcp_homepage = https://github.com/benoitc-attic/barrel_tcp
  333. pkg_barrel_tcp_fetch = git
  334. pkg_barrel_tcp_repo = https://github.com/benoitc-attic/barrel_tcp
  335. pkg_barrel_tcp_commit = master
  336. PACKAGES += basho_bench
  337. pkg_basho_bench_name = basho_bench
  338. pkg_basho_bench_description = A load-generation and testing tool for basically whatever you can write a returning Erlang function for.
  339. pkg_basho_bench_homepage = https://github.com/basho/basho_bench
  340. pkg_basho_bench_fetch = git
  341. pkg_basho_bench_repo = https://github.com/basho/basho_bench
  342. pkg_basho_bench_commit = master
  343. PACKAGES += bcrypt
  344. pkg_bcrypt_name = bcrypt
  345. pkg_bcrypt_description = Bcrypt Erlang / C library
  346. pkg_bcrypt_homepage = https://github.com/erlangpack/bcrypt
  347. pkg_bcrypt_fetch = git
  348. pkg_bcrypt_repo = https://github.com/erlangpack/bcrypt.git
  349. pkg_bcrypt_commit = master
  350. PACKAGES += beam
  351. pkg_beam_name = beam
  352. pkg_beam_description = BEAM emulator written in Erlang
  353. pkg_beam_homepage = https://github.com/tonyrog/beam
  354. pkg_beam_fetch = git
  355. pkg_beam_repo = https://github.com/tonyrog/beam
  356. pkg_beam_commit = master
  357. PACKAGES += beanstalk
  358. pkg_beanstalk_name = beanstalk
  359. pkg_beanstalk_description = An Erlang client for beanstalkd
  360. pkg_beanstalk_homepage = https://github.com/tim/erlang-beanstalk
  361. pkg_beanstalk_fetch = git
  362. pkg_beanstalk_repo = https://github.com/tim/erlang-beanstalk
  363. pkg_beanstalk_commit = master
  364. PACKAGES += bear
  365. pkg_bear_name = bear
  366. pkg_bear_description = a set of statistics functions for erlang
  367. pkg_bear_homepage = https://github.com/boundary/bear
  368. pkg_bear_fetch = git
  369. pkg_bear_repo = https://github.com/boundary/bear
  370. pkg_bear_commit = master
  371. PACKAGES += bertconf
  372. pkg_bertconf_name = bertconf
  373. pkg_bertconf_description = Make ETS tables out of statc BERT files that are auto-reloaded
  374. pkg_bertconf_homepage = https://github.com/ferd/bertconf
  375. pkg_bertconf_fetch = git
  376. pkg_bertconf_repo = https://github.com/ferd/bertconf
  377. pkg_bertconf_commit = master
  378. PACKAGES += bifrost
  379. pkg_bifrost_name = bifrost
  380. pkg_bifrost_description = Erlang FTP Server Framework
  381. pkg_bifrost_homepage = https://github.com/thorstadt/bifrost
  382. pkg_bifrost_fetch = git
  383. pkg_bifrost_repo = https://github.com/thorstadt/bifrost
  384. pkg_bifrost_commit = master
  385. PACKAGES += binpp
  386. pkg_binpp_name = binpp
  387. pkg_binpp_description = Erlang Binary Pretty Printer
  388. pkg_binpp_homepage = https://github.com/jtendo/binpp
  389. pkg_binpp_fetch = git
  390. pkg_binpp_repo = https://github.com/jtendo/binpp
  391. pkg_binpp_commit = master
  392. PACKAGES += bisect
  393. pkg_bisect_name = bisect
  394. pkg_bisect_description = Ordered fixed-size binary dictionary in Erlang
  395. pkg_bisect_homepage = https://github.com/knutin/bisect
  396. pkg_bisect_fetch = git
  397. pkg_bisect_repo = https://github.com/knutin/bisect
  398. pkg_bisect_commit = master
  399. PACKAGES += bitcask
  400. pkg_bitcask_name = bitcask
  401. pkg_bitcask_description = because you need another a key/value storage engine
  402. pkg_bitcask_homepage = https://github.com/basho/bitcask
  403. pkg_bitcask_fetch = git
  404. pkg_bitcask_repo = https://github.com/basho/bitcask
  405. pkg_bitcask_commit = develop
  406. PACKAGES += bitstore
  407. pkg_bitstore_name = bitstore
  408. pkg_bitstore_description = A document based ontology development environment
  409. pkg_bitstore_homepage = https://github.com/bdionne/bitstore
  410. pkg_bitstore_fetch = git
  411. pkg_bitstore_repo = https://github.com/bdionne/bitstore
  412. pkg_bitstore_commit = master
  413. PACKAGES += bootstrap
  414. pkg_bootstrap_name = bootstrap
  415. pkg_bootstrap_description = A simple, yet powerful Erlang cluster bootstrapping application.
  416. pkg_bootstrap_homepage = https://github.com/schlagert/bootstrap
  417. pkg_bootstrap_fetch = git
  418. pkg_bootstrap_repo = https://github.com/schlagert/bootstrap
  419. pkg_bootstrap_commit = master
  420. PACKAGES += boss
  421. pkg_boss_name = boss
  422. pkg_boss_description = Erlang web MVC, now featuring Comet
  423. pkg_boss_homepage = https://github.com/ChicagoBoss/ChicagoBoss
  424. pkg_boss_fetch = git
  425. pkg_boss_repo = https://github.com/ChicagoBoss/ChicagoBoss
  426. pkg_boss_commit = master
  427. PACKAGES += boss_db
  428. pkg_boss_db_name = boss_db
  429. pkg_boss_db_description = BossDB: a sharded, caching, pooling, evented ORM for Erlang
  430. pkg_boss_db_homepage = https://github.com/ErlyORM/boss_db
  431. pkg_boss_db_fetch = git
  432. pkg_boss_db_repo = https://github.com/ErlyORM/boss_db
  433. pkg_boss_db_commit = master
  434. PACKAGES += brod
  435. pkg_brod_name = brod
  436. pkg_brod_description = Kafka client in Erlang
  437. pkg_brod_homepage = https://github.com/klarna/brod
  438. pkg_brod_fetch = git
  439. pkg_brod_repo = https://github.com/klarna/brod.git
  440. pkg_brod_commit = master
  441. PACKAGES += bson
  442. pkg_bson_name = bson
  443. pkg_bson_description = BSON documents in Erlang, see bsonspec.org
  444. pkg_bson_homepage = https://github.com/comtihon/bson-erlang
  445. pkg_bson_fetch = git
  446. pkg_bson_repo = https://github.com/comtihon/bson-erlang
  447. pkg_bson_commit = master
  448. PACKAGES += bullet
  449. pkg_bullet_name = bullet
  450. pkg_bullet_description = Simple, reliable, efficient streaming for Cowboy.
  451. pkg_bullet_homepage = http://ninenines.eu
  452. pkg_bullet_fetch = git
  453. pkg_bullet_repo = https://github.com/ninenines/bullet
  454. pkg_bullet_commit = master
  455. PACKAGES += cache
  456. pkg_cache_name = cache
  457. pkg_cache_description = Erlang in-memory cache
  458. pkg_cache_homepage = https://github.com/fogfish/cache
  459. pkg_cache_fetch = git
  460. pkg_cache_repo = https://github.com/fogfish/cache
  461. pkg_cache_commit = master
  462. PACKAGES += cake
  463. pkg_cake_name = cake
  464. pkg_cake_description = Really simple terminal colorization
  465. pkg_cake_homepage = https://github.com/darach/cake-erl
  466. pkg_cake_fetch = git
  467. pkg_cake_repo = https://github.com/darach/cake-erl
  468. pkg_cake_commit = master
  469. PACKAGES += carotene
  470. pkg_carotene_name = carotene
  471. pkg_carotene_description = Real-time server
  472. pkg_carotene_homepage = https://github.com/carotene/carotene
  473. pkg_carotene_fetch = git
  474. pkg_carotene_repo = https://github.com/carotene/carotene
  475. pkg_carotene_commit = master
  476. PACKAGES += cberl
  477. pkg_cberl_name = cberl
  478. pkg_cberl_description = NIF based Erlang bindings for Couchbase
  479. pkg_cberl_homepage = https://github.com/chitika/cberl
  480. pkg_cberl_fetch = git
  481. pkg_cberl_repo = https://github.com/chitika/cberl
  482. pkg_cberl_commit = master
  483. PACKAGES += cecho
  484. pkg_cecho_name = cecho
  485. pkg_cecho_description = An ncurses library for Erlang
  486. pkg_cecho_homepage = https://github.com/mazenharake/cecho
  487. pkg_cecho_fetch = git
  488. pkg_cecho_repo = https://github.com/mazenharake/cecho
  489. pkg_cecho_commit = master
  490. PACKAGES += cferl
  491. pkg_cferl_name = cferl
  492. pkg_cferl_description = Rackspace / Open Stack Cloud Files Erlang Client
  493. pkg_cferl_homepage = https://github.com/ddossot/cferl
  494. pkg_cferl_fetch = git
  495. pkg_cferl_repo = https://github.com/ddossot/cferl
  496. pkg_cferl_commit = master
  497. PACKAGES += chaos_monkey
  498. pkg_chaos_monkey_name = chaos_monkey
  499. pkg_chaos_monkey_description = This is The CHAOS MONKEY. It will kill your processes.
  500. pkg_chaos_monkey_homepage = https://github.com/dLuna/chaos_monkey
  501. pkg_chaos_monkey_fetch = git
  502. pkg_chaos_monkey_repo = https://github.com/dLuna/chaos_monkey
  503. pkg_chaos_monkey_commit = master
  504. PACKAGES += check_node
  505. pkg_check_node_name = check_node
  506. pkg_check_node_description = Nagios Scripts for monitoring Riak
  507. pkg_check_node_homepage = https://github.com/basho-labs/riak_nagios
  508. pkg_check_node_fetch = git
  509. pkg_check_node_repo = https://github.com/basho-labs/riak_nagios
  510. pkg_check_node_commit = master
  511. PACKAGES += chronos
  512. pkg_chronos_name = chronos
  513. pkg_chronos_description = Timer module for Erlang that makes it easy to abstact time out of the tests.
  514. pkg_chronos_homepage = https://github.com/lehoff/chronos
  515. pkg_chronos_fetch = git
  516. pkg_chronos_repo = https://github.com/lehoff/chronos
  517. pkg_chronos_commit = master
  518. PACKAGES += chumak
  519. pkg_chumak_name = chumak
  520. pkg_chumak_description = Pure Erlang implementation of ZeroMQ Message Transport Protocol.
  521. pkg_chumak_homepage = http://choven.ca
  522. pkg_chumak_fetch = git
  523. pkg_chumak_repo = https://github.com/chovencorp/chumak
  524. pkg_chumak_commit = master
  525. PACKAGES += cl
  526. pkg_cl_name = cl
  527. pkg_cl_description = OpenCL binding for Erlang
  528. pkg_cl_homepage = https://github.com/tonyrog/cl
  529. pkg_cl_fetch = git
  530. pkg_cl_repo = https://github.com/tonyrog/cl
  531. pkg_cl_commit = master
  532. PACKAGES += clique
  533. pkg_clique_name = clique
  534. pkg_clique_description = CLI Framework for Erlang
  535. pkg_clique_homepage = https://github.com/basho/clique
  536. pkg_clique_fetch = git
  537. pkg_clique_repo = https://github.com/basho/clique
  538. pkg_clique_commit = develop
  539. PACKAGES += cloudi_core
  540. pkg_cloudi_core_name = cloudi_core
  541. pkg_cloudi_core_description = CloudI internal service runtime
  542. pkg_cloudi_core_homepage = http://cloudi.org/
  543. pkg_cloudi_core_fetch = git
  544. pkg_cloudi_core_repo = https://github.com/CloudI/cloudi_core
  545. pkg_cloudi_core_commit = master
  546. PACKAGES += cloudi_service_api_requests
  547. pkg_cloudi_service_api_requests_name = cloudi_service_api_requests
  548. pkg_cloudi_service_api_requests_description = CloudI Service API requests (JSON-RPC/Erlang-term support)
  549. pkg_cloudi_service_api_requests_homepage = http://cloudi.org/
  550. pkg_cloudi_service_api_requests_fetch = git
  551. pkg_cloudi_service_api_requests_repo = https://github.com/CloudI/cloudi_service_api_requests
  552. pkg_cloudi_service_api_requests_commit = master
  553. PACKAGES += cloudi_service_db
  554. pkg_cloudi_service_db_name = cloudi_service_db
  555. pkg_cloudi_service_db_description = CloudI Database (in-memory/testing/generic)
  556. pkg_cloudi_service_db_homepage = http://cloudi.org/
  557. pkg_cloudi_service_db_fetch = git
  558. pkg_cloudi_service_db_repo = https://github.com/CloudI/cloudi_service_db
  559. pkg_cloudi_service_db_commit = master
  560. PACKAGES += cloudi_service_db_cassandra
  561. pkg_cloudi_service_db_cassandra_name = cloudi_service_db_cassandra
  562. pkg_cloudi_service_db_cassandra_description = Cassandra CloudI Service
  563. pkg_cloudi_service_db_cassandra_homepage = http://cloudi.org/
  564. pkg_cloudi_service_db_cassandra_fetch = git
  565. pkg_cloudi_service_db_cassandra_repo = https://github.com/CloudI/cloudi_service_db_cassandra
  566. pkg_cloudi_service_db_cassandra_commit = master
  567. PACKAGES += cloudi_service_db_cassandra_cql
  568. pkg_cloudi_service_db_cassandra_cql_name = cloudi_service_db_cassandra_cql
  569. pkg_cloudi_service_db_cassandra_cql_description = Cassandra CQL CloudI Service
  570. pkg_cloudi_service_db_cassandra_cql_homepage = http://cloudi.org/
  571. pkg_cloudi_service_db_cassandra_cql_fetch = git
  572. pkg_cloudi_service_db_cassandra_cql_repo = https://github.com/CloudI/cloudi_service_db_cassandra_cql
  573. pkg_cloudi_service_db_cassandra_cql_commit = master
  574. PACKAGES += cloudi_service_db_couchdb
  575. pkg_cloudi_service_db_couchdb_name = cloudi_service_db_couchdb
  576. pkg_cloudi_service_db_couchdb_description = CouchDB CloudI Service
  577. pkg_cloudi_service_db_couchdb_homepage = http://cloudi.org/
  578. pkg_cloudi_service_db_couchdb_fetch = git
  579. pkg_cloudi_service_db_couchdb_repo = https://github.com/CloudI/cloudi_service_db_couchdb
  580. pkg_cloudi_service_db_couchdb_commit = master
  581. PACKAGES += cloudi_service_db_elasticsearch
  582. pkg_cloudi_service_db_elasticsearch_name = cloudi_service_db_elasticsearch
  583. pkg_cloudi_service_db_elasticsearch_description = elasticsearch CloudI Service
  584. pkg_cloudi_service_db_elasticsearch_homepage = http://cloudi.org/
  585. pkg_cloudi_service_db_elasticsearch_fetch = git
  586. pkg_cloudi_service_db_elasticsearch_repo = https://github.com/CloudI/cloudi_service_db_elasticsearch
  587. pkg_cloudi_service_db_elasticsearch_commit = master
  588. PACKAGES += cloudi_service_db_memcached
  589. pkg_cloudi_service_db_memcached_name = cloudi_service_db_memcached
  590. pkg_cloudi_service_db_memcached_description = memcached CloudI Service
  591. pkg_cloudi_service_db_memcached_homepage = http://cloudi.org/
  592. pkg_cloudi_service_db_memcached_fetch = git
  593. pkg_cloudi_service_db_memcached_repo = https://github.com/CloudI/cloudi_service_db_memcached
  594. pkg_cloudi_service_db_memcached_commit = master
  595. PACKAGES += cloudi_service_db_mysql
  596. pkg_cloudi_service_db_mysql_name = cloudi_service_db_mysql
  597. pkg_cloudi_service_db_mysql_description = MySQL CloudI Service
  598. pkg_cloudi_service_db_mysql_homepage = http://cloudi.org/
  599. pkg_cloudi_service_db_mysql_fetch = git
  600. pkg_cloudi_service_db_mysql_repo = https://github.com/CloudI/cloudi_service_db_mysql
  601. pkg_cloudi_service_db_mysql_commit = master
  602. PACKAGES += cloudi_service_db_pgsql
  603. pkg_cloudi_service_db_pgsql_name = cloudi_service_db_pgsql
  604. pkg_cloudi_service_db_pgsql_description = PostgreSQL CloudI Service
  605. pkg_cloudi_service_db_pgsql_homepage = http://cloudi.org/
  606. pkg_cloudi_service_db_pgsql_fetch = git
  607. pkg_cloudi_service_db_pgsql_repo = https://github.com/CloudI/cloudi_service_db_pgsql
  608. pkg_cloudi_service_db_pgsql_commit = master
  609. PACKAGES += cloudi_service_db_riak
  610. pkg_cloudi_service_db_riak_name = cloudi_service_db_riak
  611. pkg_cloudi_service_db_riak_description = Riak CloudI Service
  612. pkg_cloudi_service_db_riak_homepage = http://cloudi.org/
  613. pkg_cloudi_service_db_riak_fetch = git
  614. pkg_cloudi_service_db_riak_repo = https://github.com/CloudI/cloudi_service_db_riak
  615. pkg_cloudi_service_db_riak_commit = master
  616. PACKAGES += cloudi_service_db_tokyotyrant
  617. pkg_cloudi_service_db_tokyotyrant_name = cloudi_service_db_tokyotyrant
  618. pkg_cloudi_service_db_tokyotyrant_description = Tokyo Tyrant CloudI Service
  619. pkg_cloudi_service_db_tokyotyrant_homepage = http://cloudi.org/
  620. pkg_cloudi_service_db_tokyotyrant_fetch = git
  621. pkg_cloudi_service_db_tokyotyrant_repo = https://github.com/CloudI/cloudi_service_db_tokyotyrant
  622. pkg_cloudi_service_db_tokyotyrant_commit = master
  623. PACKAGES += cloudi_service_filesystem
  624. pkg_cloudi_service_filesystem_name = cloudi_service_filesystem
  625. pkg_cloudi_service_filesystem_description = Filesystem CloudI Service
  626. pkg_cloudi_service_filesystem_homepage = http://cloudi.org/
  627. pkg_cloudi_service_filesystem_fetch = git
  628. pkg_cloudi_service_filesystem_repo = https://github.com/CloudI/cloudi_service_filesystem
  629. pkg_cloudi_service_filesystem_commit = master
  630. PACKAGES += cloudi_service_http_client
  631. pkg_cloudi_service_http_client_name = cloudi_service_http_client
  632. pkg_cloudi_service_http_client_description = HTTP client CloudI Service
  633. pkg_cloudi_service_http_client_homepage = http://cloudi.org/
  634. pkg_cloudi_service_http_client_fetch = git
  635. pkg_cloudi_service_http_client_repo = https://github.com/CloudI/cloudi_service_http_client
  636. pkg_cloudi_service_http_client_commit = master
  637. PACKAGES += cloudi_service_http_cowboy
  638. pkg_cloudi_service_http_cowboy_name = cloudi_service_http_cowboy
  639. pkg_cloudi_service_http_cowboy_description = cowboy HTTP/HTTPS CloudI Service
  640. pkg_cloudi_service_http_cowboy_homepage = http://cloudi.org/
  641. pkg_cloudi_service_http_cowboy_fetch = git
  642. pkg_cloudi_service_http_cowboy_repo = https://github.com/CloudI/cloudi_service_http_cowboy
  643. pkg_cloudi_service_http_cowboy_commit = master
  644. PACKAGES += cloudi_service_http_elli
  645. pkg_cloudi_service_http_elli_name = cloudi_service_http_elli
  646. pkg_cloudi_service_http_elli_description = elli HTTP CloudI Service
  647. pkg_cloudi_service_http_elli_homepage = http://cloudi.org/
  648. pkg_cloudi_service_http_elli_fetch = git
  649. pkg_cloudi_service_http_elli_repo = https://github.com/CloudI/cloudi_service_http_elli
  650. pkg_cloudi_service_http_elli_commit = master
  651. PACKAGES += cloudi_service_map_reduce
  652. pkg_cloudi_service_map_reduce_name = cloudi_service_map_reduce
  653. pkg_cloudi_service_map_reduce_description = Map/Reduce CloudI Service
  654. pkg_cloudi_service_map_reduce_homepage = http://cloudi.org/
  655. pkg_cloudi_service_map_reduce_fetch = git
  656. pkg_cloudi_service_map_reduce_repo = https://github.com/CloudI/cloudi_service_map_reduce
  657. pkg_cloudi_service_map_reduce_commit = master
  658. PACKAGES += cloudi_service_oauth1
  659. pkg_cloudi_service_oauth1_name = cloudi_service_oauth1
  660. pkg_cloudi_service_oauth1_description = OAuth v1.0 CloudI Service
  661. pkg_cloudi_service_oauth1_homepage = http://cloudi.org/
  662. pkg_cloudi_service_oauth1_fetch = git
  663. pkg_cloudi_service_oauth1_repo = https://github.com/CloudI/cloudi_service_oauth1
  664. pkg_cloudi_service_oauth1_commit = master
  665. PACKAGES += cloudi_service_queue
  666. pkg_cloudi_service_queue_name = cloudi_service_queue
  667. pkg_cloudi_service_queue_description = Persistent Queue Service
  668. pkg_cloudi_service_queue_homepage = http://cloudi.org/
  669. pkg_cloudi_service_queue_fetch = git
  670. pkg_cloudi_service_queue_repo = https://github.com/CloudI/cloudi_service_queue
  671. pkg_cloudi_service_queue_commit = master
  672. PACKAGES += cloudi_service_quorum
  673. pkg_cloudi_service_quorum_name = cloudi_service_quorum
  674. pkg_cloudi_service_quorum_description = CloudI Quorum Service
  675. pkg_cloudi_service_quorum_homepage = http://cloudi.org/
  676. pkg_cloudi_service_quorum_fetch = git
  677. pkg_cloudi_service_quorum_repo = https://github.com/CloudI/cloudi_service_quorum
  678. pkg_cloudi_service_quorum_commit = master
  679. PACKAGES += cloudi_service_router
  680. pkg_cloudi_service_router_name = cloudi_service_router
  681. pkg_cloudi_service_router_description = CloudI Router Service
  682. pkg_cloudi_service_router_homepage = http://cloudi.org/
  683. pkg_cloudi_service_router_fetch = git
  684. pkg_cloudi_service_router_repo = https://github.com/CloudI/cloudi_service_router
  685. pkg_cloudi_service_router_commit = master
  686. PACKAGES += cloudi_service_tcp
  687. pkg_cloudi_service_tcp_name = cloudi_service_tcp
  688. pkg_cloudi_service_tcp_description = TCP CloudI Service
  689. pkg_cloudi_service_tcp_homepage = http://cloudi.org/
  690. pkg_cloudi_service_tcp_fetch = git
  691. pkg_cloudi_service_tcp_repo = https://github.com/CloudI/cloudi_service_tcp
  692. pkg_cloudi_service_tcp_commit = master
  693. PACKAGES += cloudi_service_timers
  694. pkg_cloudi_service_timers_name = cloudi_service_timers
  695. pkg_cloudi_service_timers_description = Timers CloudI Service
  696. pkg_cloudi_service_timers_homepage = http://cloudi.org/
  697. pkg_cloudi_service_timers_fetch = git
  698. pkg_cloudi_service_timers_repo = https://github.com/CloudI/cloudi_service_timers
  699. pkg_cloudi_service_timers_commit = master
  700. PACKAGES += cloudi_service_udp
  701. pkg_cloudi_service_udp_name = cloudi_service_udp
  702. pkg_cloudi_service_udp_description = UDP CloudI Service
  703. pkg_cloudi_service_udp_homepage = http://cloudi.org/
  704. pkg_cloudi_service_udp_fetch = git
  705. pkg_cloudi_service_udp_repo = https://github.com/CloudI/cloudi_service_udp
  706. pkg_cloudi_service_udp_commit = master
  707. PACKAGES += cloudi_service_validate
  708. pkg_cloudi_service_validate_name = cloudi_service_validate
  709. pkg_cloudi_service_validate_description = CloudI Validate Service
  710. pkg_cloudi_service_validate_homepage = http://cloudi.org/
  711. pkg_cloudi_service_validate_fetch = git
  712. pkg_cloudi_service_validate_repo = https://github.com/CloudI/cloudi_service_validate
  713. pkg_cloudi_service_validate_commit = master
  714. PACKAGES += cloudi_service_zeromq
  715. pkg_cloudi_service_zeromq_name = cloudi_service_zeromq
  716. pkg_cloudi_service_zeromq_description = ZeroMQ CloudI Service
  717. pkg_cloudi_service_zeromq_homepage = http://cloudi.org/
  718. pkg_cloudi_service_zeromq_fetch = git
  719. pkg_cloudi_service_zeromq_repo = https://github.com/CloudI/cloudi_service_zeromq
  720. pkg_cloudi_service_zeromq_commit = master
  721. PACKAGES += cluster_info
  722. pkg_cluster_info_name = cluster_info
  723. pkg_cluster_info_description = Fork of Hibari's nifty cluster_info OTP app
  724. pkg_cluster_info_homepage = https://github.com/basho/cluster_info
  725. pkg_cluster_info_fetch = git
  726. pkg_cluster_info_repo = https://github.com/basho/cluster_info
  727. pkg_cluster_info_commit = master
  728. PACKAGES += color
  729. pkg_color_name = color
  730. pkg_color_description = ANSI colors for your Erlang
  731. pkg_color_homepage = https://github.com/julianduque/erlang-color
  732. pkg_color_fetch = git
  733. pkg_color_repo = https://github.com/julianduque/erlang-color
  734. pkg_color_commit = master
  735. PACKAGES += confetti
  736. pkg_confetti_name = confetti
  737. pkg_confetti_description = Erlang configuration provider / application:get_env/2 on steroids
  738. pkg_confetti_homepage = https://github.com/jtendo/confetti
  739. pkg_confetti_fetch = git
  740. pkg_confetti_repo = https://github.com/jtendo/confetti
  741. pkg_confetti_commit = master
  742. PACKAGES += couchbeam
  743. pkg_couchbeam_name = couchbeam
  744. pkg_couchbeam_description = Apache CouchDB client in Erlang
  745. pkg_couchbeam_homepage = https://github.com/benoitc/couchbeam
  746. pkg_couchbeam_fetch = git
  747. pkg_couchbeam_repo = https://github.com/benoitc/couchbeam
  748. pkg_couchbeam_commit = master
  749. PACKAGES += covertool
  750. pkg_covertool_name = covertool
  751. pkg_covertool_description = Tool to convert Erlang cover data files into Cobertura XML reports
  752. pkg_covertool_homepage = https://github.com/idubrov/covertool
  753. pkg_covertool_fetch = git
  754. pkg_covertool_repo = https://github.com/idubrov/covertool
  755. pkg_covertool_commit = master
  756. PACKAGES += cowboy
  757. pkg_cowboy_name = cowboy
  758. pkg_cowboy_description = Small, fast and modular HTTP server.
  759. pkg_cowboy_homepage = http://ninenines.eu
  760. pkg_cowboy_fetch = git
  761. pkg_cowboy_repo = https://github.com/ninenines/cowboy
  762. pkg_cowboy_commit = 1.0.4
  763. PACKAGES += cowdb
  764. pkg_cowdb_name = cowdb
  765. pkg_cowdb_description = Pure Key/Value database library for Erlang Applications
  766. pkg_cowdb_homepage = https://github.com/refuge/cowdb
  767. pkg_cowdb_fetch = git
  768. pkg_cowdb_repo = https://github.com/refuge/cowdb
  769. pkg_cowdb_commit = master
  770. PACKAGES += cowlib
  771. pkg_cowlib_name = cowlib
  772. pkg_cowlib_description = Support library for manipulating Web protocols.
  773. pkg_cowlib_homepage = http://ninenines.eu
  774. pkg_cowlib_fetch = git
  775. pkg_cowlib_repo = https://github.com/ninenines/cowlib
  776. pkg_cowlib_commit = 1.0.2
  777. PACKAGES += cpg
  778. pkg_cpg_name = cpg
  779. pkg_cpg_description = CloudI Process Groups
  780. pkg_cpg_homepage = https://github.com/okeuday/cpg
  781. pkg_cpg_fetch = git
  782. pkg_cpg_repo = https://github.com/okeuday/cpg
  783. pkg_cpg_commit = master
  784. PACKAGES += cqerl
  785. pkg_cqerl_name = cqerl
  786. pkg_cqerl_description = Native Erlang CQL client for Cassandra
  787. pkg_cqerl_homepage = https://matehat.github.io/cqerl/
  788. pkg_cqerl_fetch = git
  789. pkg_cqerl_repo = https://github.com/matehat/cqerl
  790. pkg_cqerl_commit = master
  791. PACKAGES += cr
  792. pkg_cr_name = cr
  793. pkg_cr_description = Chain Replication
  794. pkg_cr_homepage = https://synrc.com/apps/cr/doc/cr.htm
  795. pkg_cr_fetch = git
  796. pkg_cr_repo = https://github.com/spawnproc/cr
  797. pkg_cr_commit = master
  798. PACKAGES += cuttlefish
  799. pkg_cuttlefish_name = cuttlefish
  800. pkg_cuttlefish_description = cuttlefish configuration abstraction
  801. pkg_cuttlefish_homepage = https://github.com/Kyorai/cuttlefish
  802. pkg_cuttlefish_fetch = git
  803. pkg_cuttlefish_repo = https://github.com/Kyorai/cuttlefish
  804. pkg_cuttlefish_commit = master
  805. PACKAGES += damocles
  806. pkg_damocles_name = damocles
  807. pkg_damocles_description = Erlang library for generating adversarial network conditions for QAing distributed applications/systems on a single Linux box.
  808. pkg_damocles_homepage = https://github.com/lostcolony/damocles
  809. pkg_damocles_fetch = git
  810. pkg_damocles_repo = https://github.com/lostcolony/damocles
  811. pkg_damocles_commit = master
  812. PACKAGES += debbie
  813. pkg_debbie_name = debbie
  814. pkg_debbie_description = .DEB Built In Erlang
  815. pkg_debbie_homepage = https://github.com/crownedgrouse/debbie
  816. pkg_debbie_fetch = git
  817. pkg_debbie_repo = https://github.com/crownedgrouse/debbie
  818. pkg_debbie_commit = master
  819. PACKAGES += decimal
  820. pkg_decimal_name = decimal
  821. pkg_decimal_description = An Erlang decimal arithmetic library
  822. pkg_decimal_homepage = https://github.com/tim/erlang-decimal
  823. pkg_decimal_fetch = git
  824. pkg_decimal_repo = https://github.com/tim/erlang-decimal
  825. pkg_decimal_commit = master
  826. PACKAGES += detergent
  827. pkg_detergent_name = detergent
  828. pkg_detergent_description = An emulsifying Erlang SOAP library
  829. pkg_detergent_homepage = https://github.com/devinus/detergent
  830. pkg_detergent_fetch = git
  831. pkg_detergent_repo = https://github.com/devinus/detergent
  832. pkg_detergent_commit = master
  833. PACKAGES += detest
  834. pkg_detest_name = detest
  835. pkg_detest_description = Tool for running tests on a cluster of erlang nodes
  836. pkg_detest_homepage = https://github.com/biokoda/detest
  837. pkg_detest_fetch = git
  838. pkg_detest_repo = https://github.com/biokoda/detest
  839. pkg_detest_commit = master
  840. PACKAGES += dh_date
  841. pkg_dh_date_name = dh_date
  842. pkg_dh_date_description = Date formatting / parsing library for erlang
  843. pkg_dh_date_homepage = https://github.com/daleharvey/dh_date
  844. pkg_dh_date_fetch = git
  845. pkg_dh_date_repo = https://github.com/daleharvey/dh_date
  846. pkg_dh_date_commit = master
  847. PACKAGES += dirbusterl
  848. pkg_dirbusterl_name = dirbusterl
  849. pkg_dirbusterl_description = DirBuster successor in Erlang
  850. pkg_dirbusterl_homepage = https://github.com/silentsignal/DirBustErl
  851. pkg_dirbusterl_fetch = git
  852. pkg_dirbusterl_repo = https://github.com/silentsignal/DirBustErl
  853. pkg_dirbusterl_commit = master
  854. PACKAGES += dispcount
  855. pkg_dispcount_name = dispcount
  856. pkg_dispcount_description = Erlang task dispatcher based on ETS counters.
  857. pkg_dispcount_homepage = https://github.com/ferd/dispcount
  858. pkg_dispcount_fetch = git
  859. pkg_dispcount_repo = https://github.com/ferd/dispcount
  860. pkg_dispcount_commit = master
  861. PACKAGES += dlhttpc
  862. pkg_dlhttpc_name = dlhttpc
  863. pkg_dlhttpc_description = dispcount-based lhttpc fork for massive amounts of requests to limited endpoints
  864. pkg_dlhttpc_homepage = https://github.com/ferd/dlhttpc
  865. pkg_dlhttpc_fetch = git
  866. pkg_dlhttpc_repo = https://github.com/ferd/dlhttpc
  867. pkg_dlhttpc_commit = master
  868. PACKAGES += dns
  869. pkg_dns_name = dns
  870. pkg_dns_description = Erlang DNS library
  871. pkg_dns_homepage = https://github.com/aetrion/dns_erlang
  872. pkg_dns_fetch = git
  873. pkg_dns_repo = https://github.com/aetrion/dns_erlang
  874. pkg_dns_commit = master
  875. PACKAGES += dnssd
  876. pkg_dnssd_name = dnssd
  877. pkg_dnssd_description = Erlang interface to Apple's Bonjour D NS Service Discovery implementation
  878. pkg_dnssd_homepage = https://github.com/benoitc/dnssd_erlang
  879. pkg_dnssd_fetch = git
  880. pkg_dnssd_repo = https://github.com/benoitc/dnssd_erlang
  881. pkg_dnssd_commit = master
  882. PACKAGES += dynamic_compile
  883. pkg_dynamic_compile_name = dynamic_compile
  884. pkg_dynamic_compile_description = compile and load erlang modules from string input
  885. pkg_dynamic_compile_homepage = https://github.com/jkvor/dynamic_compile
  886. pkg_dynamic_compile_fetch = git
  887. pkg_dynamic_compile_repo = https://github.com/jkvor/dynamic_compile
  888. pkg_dynamic_compile_commit = master
  889. PACKAGES += e2
  890. pkg_e2_name = e2
  891. pkg_e2_description = Library to simply writing correct OTP applications.
  892. pkg_e2_homepage = http://e2project.org
  893. pkg_e2_fetch = git
  894. pkg_e2_repo = https://github.com/gar1t/e2
  895. pkg_e2_commit = master
  896. PACKAGES += eamf
  897. pkg_eamf_name = eamf
  898. pkg_eamf_description = eAMF provides Action Message Format (AMF) support for Erlang
  899. pkg_eamf_homepage = https://github.com/mrinalwadhwa/eamf
  900. pkg_eamf_fetch = git
  901. pkg_eamf_repo = https://github.com/mrinalwadhwa/eamf
  902. pkg_eamf_commit = master
  903. PACKAGES += eavro
  904. pkg_eavro_name = eavro
  905. pkg_eavro_description = Apache Avro encoder/decoder
  906. pkg_eavro_homepage = https://github.com/SIfoxDevTeam/eavro
  907. pkg_eavro_fetch = git
  908. pkg_eavro_repo = https://github.com/SIfoxDevTeam/eavro
  909. pkg_eavro_commit = master
  910. PACKAGES += ecapnp
  911. pkg_ecapnp_name = ecapnp
  912. pkg_ecapnp_description = Cap'n Proto library for Erlang
  913. pkg_ecapnp_homepage = https://github.com/kaos/ecapnp
  914. pkg_ecapnp_fetch = git
  915. pkg_ecapnp_repo = https://github.com/kaos/ecapnp
  916. pkg_ecapnp_commit = master
  917. PACKAGES += econfig
  918. pkg_econfig_name = econfig
  919. pkg_econfig_description = simple Erlang config handler using INI files
  920. pkg_econfig_homepage = https://github.com/benoitc/econfig
  921. pkg_econfig_fetch = git
  922. pkg_econfig_repo = https://github.com/benoitc/econfig
  923. pkg_econfig_commit = master
  924. PACKAGES += edate
  925. pkg_edate_name = edate
  926. pkg_edate_description = date manipulation library for erlang
  927. pkg_edate_homepage = https://github.com/dweldon/edate
  928. pkg_edate_fetch = git
  929. pkg_edate_repo = https://github.com/dweldon/edate
  930. pkg_edate_commit = master
  931. PACKAGES += edgar
  932. pkg_edgar_name = edgar
  933. pkg_edgar_description = Erlang Does GNU AR
  934. pkg_edgar_homepage = https://github.com/crownedgrouse/edgar
  935. pkg_edgar_fetch = git
  936. pkg_edgar_repo = https://github.com/crownedgrouse/edgar
  937. pkg_edgar_commit = master
  938. PACKAGES += edis
  939. pkg_edis_name = edis
  940. pkg_edis_description = An Erlang implementation of Redis KV Store
  941. pkg_edis_homepage = http://inaka.github.com/edis/
  942. pkg_edis_fetch = git
  943. pkg_edis_repo = https://github.com/inaka/edis
  944. pkg_edis_commit = master
  945. PACKAGES += edns
  946. pkg_edns_name = edns
  947. pkg_edns_description = Erlang/OTP DNS server
  948. pkg_edns_homepage = https://github.com/hcvst/erlang-dns
  949. pkg_edns_fetch = git
  950. pkg_edns_repo = https://github.com/hcvst/erlang-dns
  951. pkg_edns_commit = master
  952. PACKAGES += edown
  953. pkg_edown_name = edown
  954. pkg_edown_description = EDoc extension for generating Github-flavored Markdown
  955. pkg_edown_homepage = https://github.com/uwiger/edown
  956. pkg_edown_fetch = git
  957. pkg_edown_repo = https://github.com/uwiger/edown
  958. pkg_edown_commit = master
  959. PACKAGES += eep
  960. pkg_eep_name = eep
  961. pkg_eep_description = Erlang Easy Profiling (eep) application provides a way to analyze application performance and call hierarchy
  962. pkg_eep_homepage = https://github.com/virtan/eep
  963. pkg_eep_fetch = git
  964. pkg_eep_repo = https://github.com/virtan/eep
  965. pkg_eep_commit = master
  966. PACKAGES += eep_app
  967. pkg_eep_app_name = eep_app
  968. pkg_eep_app_description = Embedded Event Processing
  969. pkg_eep_app_homepage = https://github.com/darach/eep-erl
  970. pkg_eep_app_fetch = git
  971. pkg_eep_app_repo = https://github.com/darach/eep-erl
  972. pkg_eep_app_commit = master
  973. PACKAGES += efene
  974. pkg_efene_name = efene
  975. pkg_efene_description = Alternative syntax for the Erlang Programming Language focusing on simplicity, ease of use and programmer UX
  976. pkg_efene_homepage = https://github.com/efene/efene
  977. pkg_efene_fetch = git
  978. pkg_efene_repo = https://github.com/efene/efene
  979. pkg_efene_commit = master
  980. PACKAGES += egeoip
  981. pkg_egeoip_name = egeoip
  982. pkg_egeoip_description = Erlang IP Geolocation module, currently supporting the MaxMind GeoLite City Database.
  983. pkg_egeoip_homepage = https://github.com/mochi/egeoip
  984. pkg_egeoip_fetch = git
  985. pkg_egeoip_repo = https://github.com/mochi/egeoip
  986. pkg_egeoip_commit = master
  987. PACKAGES += ehsa
  988. pkg_ehsa_name = ehsa
  989. pkg_ehsa_description = Erlang HTTP server basic and digest authentication modules
  990. pkg_ehsa_homepage = https://bitbucket.org/a12n/ehsa
  991. pkg_ehsa_fetch = hg
  992. pkg_ehsa_repo = https://bitbucket.org/a12n/ehsa
  993. pkg_ehsa_commit = default
  994. PACKAGES += ej
  995. pkg_ej_name = ej
  996. pkg_ej_description = Helper module for working with Erlang terms representing JSON
  997. pkg_ej_homepage = https://github.com/seth/ej
  998. pkg_ej_fetch = git
  999. pkg_ej_repo = https://github.com/seth/ej
  1000. pkg_ej_commit = master
  1001. PACKAGES += ejabberd
  1002. pkg_ejabberd_name = ejabberd
  1003. pkg_ejabberd_description = Robust, ubiquitous and massively scalable Jabber / XMPP Instant Messaging platform
  1004. pkg_ejabberd_homepage = https://github.com/processone/ejabberd
  1005. pkg_ejabberd_fetch = git
  1006. pkg_ejabberd_repo = https://github.com/processone/ejabberd
  1007. pkg_ejabberd_commit = master
  1008. PACKAGES += ejwt
  1009. pkg_ejwt_name = ejwt
  1010. pkg_ejwt_description = erlang library for JSON Web Token
  1011. pkg_ejwt_homepage = https://github.com/artefactop/ejwt
  1012. pkg_ejwt_fetch = git
  1013. pkg_ejwt_repo = https://github.com/artefactop/ejwt
  1014. pkg_ejwt_commit = master
  1015. PACKAGES += ekaf
  1016. pkg_ekaf_name = ekaf
  1017. pkg_ekaf_description = A minimal, high-performance Kafka client in Erlang.
  1018. pkg_ekaf_homepage = https://github.com/helpshift/ekaf
  1019. pkg_ekaf_fetch = git
  1020. pkg_ekaf_repo = https://github.com/helpshift/ekaf
  1021. pkg_ekaf_commit = master
  1022. PACKAGES += elarm
  1023. pkg_elarm_name = elarm
  1024. pkg_elarm_description = Alarm Manager for Erlang.
  1025. pkg_elarm_homepage = https://github.com/esl/elarm
  1026. pkg_elarm_fetch = git
  1027. pkg_elarm_repo = https://github.com/esl/elarm
  1028. pkg_elarm_commit = master
  1029. PACKAGES += eleveldb
  1030. pkg_eleveldb_name = eleveldb
  1031. pkg_eleveldb_description = Erlang LevelDB API
  1032. pkg_eleveldb_homepage = https://github.com/basho/eleveldb
  1033. pkg_eleveldb_fetch = git
  1034. pkg_eleveldb_repo = https://github.com/basho/eleveldb
  1035. pkg_eleveldb_commit = master
  1036. PACKAGES += elixir
  1037. pkg_elixir_name = elixir
  1038. pkg_elixir_description = Elixir is a dynamic, functional language designed for building scalable and maintainable applications
  1039. pkg_elixir_homepage = https://elixir-lang.org/
  1040. pkg_elixir_fetch = git
  1041. pkg_elixir_repo = https://github.com/elixir-lang/elixir
  1042. pkg_elixir_commit = master
  1043. PACKAGES += elli
  1044. pkg_elli_name = elli
  1045. pkg_elli_description = Simple, robust and performant Erlang web server
  1046. pkg_elli_homepage = https://github.com/elli-lib/elli
  1047. pkg_elli_fetch = git
  1048. pkg_elli_repo = https://github.com/elli-lib/elli
  1049. pkg_elli_commit = master
  1050. PACKAGES += elvis
  1051. pkg_elvis_name = elvis
  1052. pkg_elvis_description = Erlang Style Reviewer
  1053. pkg_elvis_homepage = https://github.com/inaka/elvis
  1054. pkg_elvis_fetch = git
  1055. pkg_elvis_repo = https://github.com/inaka/elvis
  1056. pkg_elvis_commit = master
  1057. PACKAGES += emagick
  1058. pkg_emagick_name = emagick
  1059. pkg_emagick_description = Wrapper for Graphics/ImageMagick command line tool.
  1060. pkg_emagick_homepage = https://github.com/kivra/emagick
  1061. pkg_emagick_fetch = git
  1062. pkg_emagick_repo = https://github.com/kivra/emagick
  1063. pkg_emagick_commit = master
  1064. PACKAGES += emysql
  1065. pkg_emysql_name = emysql
  1066. pkg_emysql_description = Stable, pure Erlang MySQL driver.
  1067. pkg_emysql_homepage = https://github.com/Eonblast/Emysql
  1068. pkg_emysql_fetch = git
  1069. pkg_emysql_repo = https://github.com/Eonblast/Emysql
  1070. pkg_emysql_commit = master
  1071. PACKAGES += enm
  1072. pkg_enm_name = enm
  1073. pkg_enm_description = Erlang driver for nanomsg
  1074. pkg_enm_homepage = https://github.com/basho/enm
  1075. pkg_enm_fetch = git
  1076. pkg_enm_repo = https://github.com/basho/enm
  1077. pkg_enm_commit = master
  1078. PACKAGES += entop
  1079. pkg_entop_name = entop
  1080. pkg_entop_description = A top-like tool for monitoring an Erlang node
  1081. pkg_entop_homepage = https://github.com/mazenharake/entop
  1082. pkg_entop_fetch = git
  1083. pkg_entop_repo = https://github.com/mazenharake/entop
  1084. pkg_entop_commit = master
  1085. PACKAGES += epcap
  1086. pkg_epcap_name = epcap
  1087. pkg_epcap_description = Erlang packet capture interface using pcap
  1088. pkg_epcap_homepage = https://github.com/msantos/epcap
  1089. pkg_epcap_fetch = git
  1090. pkg_epcap_repo = https://github.com/msantos/epcap
  1091. pkg_epcap_commit = master
  1092. PACKAGES += eper
  1093. pkg_eper_name = eper
  1094. pkg_eper_description = Erlang performance and debugging tools.
  1095. pkg_eper_homepage = https://github.com/massemanet/eper
  1096. pkg_eper_fetch = git
  1097. pkg_eper_repo = https://github.com/massemanet/eper
  1098. pkg_eper_commit = master
  1099. PACKAGES += epgsql
  1100. pkg_epgsql_name = epgsql
  1101. pkg_epgsql_description = Erlang PostgreSQL client library.
  1102. pkg_epgsql_homepage = https://github.com/epgsql/epgsql
  1103. pkg_epgsql_fetch = git
  1104. pkg_epgsql_repo = https://github.com/epgsql/epgsql
  1105. pkg_epgsql_commit = master
  1106. PACKAGES += episcina
  1107. pkg_episcina_name = episcina
  1108. pkg_episcina_description = A simple non intrusive resource pool for connections
  1109. pkg_episcina_homepage = https://github.com/erlware/episcina
  1110. pkg_episcina_fetch = git
  1111. pkg_episcina_repo = https://github.com/erlware/episcina
  1112. pkg_episcina_commit = master
  1113. PACKAGES += eplot
  1114. pkg_eplot_name = eplot
  1115. pkg_eplot_description = A plot engine written in erlang.
  1116. pkg_eplot_homepage = https://github.com/psyeugenic/eplot
  1117. pkg_eplot_fetch = git
  1118. pkg_eplot_repo = https://github.com/psyeugenic/eplot
  1119. pkg_eplot_commit = master
  1120. PACKAGES += epocxy
  1121. pkg_epocxy_name = epocxy
  1122. pkg_epocxy_description = Erlang Patterns of Concurrency
  1123. pkg_epocxy_homepage = https://github.com/duomark/epocxy
  1124. pkg_epocxy_fetch = git
  1125. pkg_epocxy_repo = https://github.com/duomark/epocxy
  1126. pkg_epocxy_commit = master
  1127. PACKAGES += epubnub
  1128. pkg_epubnub_name = epubnub
  1129. pkg_epubnub_description = Erlang PubNub API
  1130. pkg_epubnub_homepage = https://github.com/tsloughter/epubnub
  1131. pkg_epubnub_fetch = git
  1132. pkg_epubnub_repo = https://github.com/tsloughter/epubnub
  1133. pkg_epubnub_commit = master
  1134. PACKAGES += eqm
  1135. pkg_eqm_name = eqm
  1136. pkg_eqm_description = Erlang pub sub with supply-demand channels
  1137. pkg_eqm_homepage = https://github.com/loucash/eqm
  1138. pkg_eqm_fetch = git
  1139. pkg_eqm_repo = https://github.com/loucash/eqm
  1140. pkg_eqm_commit = master
  1141. PACKAGES += eredis
  1142. pkg_eredis_name = eredis
  1143. pkg_eredis_description = Erlang Redis client
  1144. pkg_eredis_homepage = https://github.com/wooga/eredis
  1145. pkg_eredis_fetch = git
  1146. pkg_eredis_repo = https://github.com/wooga/eredis
  1147. pkg_eredis_commit = master
  1148. PACKAGES += eredis_pool
  1149. pkg_eredis_pool_name = eredis_pool
  1150. pkg_eredis_pool_description = eredis_pool is Pool of Redis clients, using eredis and poolboy.
  1151. pkg_eredis_pool_homepage = https://github.com/hiroeorz/eredis_pool
  1152. pkg_eredis_pool_fetch = git
  1153. pkg_eredis_pool_repo = https://github.com/hiroeorz/eredis_pool
  1154. pkg_eredis_pool_commit = master
  1155. PACKAGES += erl_streams
  1156. pkg_erl_streams_name = erl_streams
  1157. pkg_erl_streams_description = Streams in Erlang
  1158. pkg_erl_streams_homepage = https://github.com/epappas/erl_streams
  1159. pkg_erl_streams_fetch = git
  1160. pkg_erl_streams_repo = https://github.com/epappas/erl_streams
  1161. pkg_erl_streams_commit = master
  1162. PACKAGES += erlang_cep
  1163. pkg_erlang_cep_name = erlang_cep
  1164. pkg_erlang_cep_description = A basic CEP package written in erlang
  1165. pkg_erlang_cep_homepage = https://github.com/danmacklin/erlang_cep
  1166. pkg_erlang_cep_fetch = git
  1167. pkg_erlang_cep_repo = https://github.com/danmacklin/erlang_cep
  1168. pkg_erlang_cep_commit = master
  1169. PACKAGES += erlang_js
  1170. pkg_erlang_js_name = erlang_js
  1171. pkg_erlang_js_description = A linked-in driver for Erlang to Mozilla's Spidermonkey Javascript runtime.
  1172. pkg_erlang_js_homepage = https://github.com/basho/erlang_js
  1173. pkg_erlang_js_fetch = git
  1174. pkg_erlang_js_repo = https://github.com/basho/erlang_js
  1175. pkg_erlang_js_commit = master
  1176. PACKAGES += erlang_localtime
  1177. pkg_erlang_localtime_name = erlang_localtime
  1178. pkg_erlang_localtime_description = Erlang library for conversion from one local time to another
  1179. pkg_erlang_localtime_homepage = https://github.com/dmitryme/erlang_localtime
  1180. pkg_erlang_localtime_fetch = git
  1181. pkg_erlang_localtime_repo = https://github.com/dmitryme/erlang_localtime
  1182. pkg_erlang_localtime_commit = master
  1183. PACKAGES += erlang_smtp
  1184. pkg_erlang_smtp_name = erlang_smtp
  1185. pkg_erlang_smtp_description = Erlang SMTP and POP3 server code.
  1186. pkg_erlang_smtp_homepage = https://github.com/tonyg/erlang-smtp
  1187. pkg_erlang_smtp_fetch = git
  1188. pkg_erlang_smtp_repo = https://github.com/tonyg/erlang-smtp
  1189. pkg_erlang_smtp_commit = master
  1190. PACKAGES += erlang_term
  1191. pkg_erlang_term_name = erlang_term
  1192. pkg_erlang_term_description = Erlang Term Info
  1193. pkg_erlang_term_homepage = https://github.com/okeuday/erlang_term
  1194. pkg_erlang_term_fetch = git
  1195. pkg_erlang_term_repo = https://github.com/okeuday/erlang_term
  1196. pkg_erlang_term_commit = master
  1197. PACKAGES += erlastic_search
  1198. pkg_erlastic_search_name = erlastic_search
  1199. pkg_erlastic_search_description = An Erlang app for communicating with Elastic Search's rest interface.
  1200. pkg_erlastic_search_homepage = https://github.com/tsloughter/erlastic_search
  1201. pkg_erlastic_search_fetch = git
  1202. pkg_erlastic_search_repo = https://github.com/tsloughter/erlastic_search
  1203. pkg_erlastic_search_commit = master
  1204. PACKAGES += erlasticsearch
  1205. pkg_erlasticsearch_name = erlasticsearch
  1206. pkg_erlasticsearch_description = Erlang thrift interface to elastic_search
  1207. pkg_erlasticsearch_homepage = https://github.com/dieswaytoofast/erlasticsearch
  1208. pkg_erlasticsearch_fetch = git
  1209. pkg_erlasticsearch_repo = https://github.com/dieswaytoofast/erlasticsearch
  1210. pkg_erlasticsearch_commit = master
  1211. PACKAGES += erlbrake
  1212. pkg_erlbrake_name = erlbrake
  1213. pkg_erlbrake_description = Erlang Airbrake notification client
  1214. pkg_erlbrake_homepage = https://github.com/kenpratt/erlbrake
  1215. pkg_erlbrake_fetch = git
  1216. pkg_erlbrake_repo = https://github.com/kenpratt/erlbrake
  1217. pkg_erlbrake_commit = master
  1218. PACKAGES += erlcloud
  1219. pkg_erlcloud_name = erlcloud
  1220. pkg_erlcloud_description = Cloud Computing library for erlang (Amazon EC2, S3, SQS, SimpleDB, Mechanical Turk, ELB)
  1221. pkg_erlcloud_homepage = https://github.com/gleber/erlcloud
  1222. pkg_erlcloud_fetch = git
  1223. pkg_erlcloud_repo = https://github.com/gleber/erlcloud
  1224. pkg_erlcloud_commit = master
  1225. PACKAGES += erlcron
  1226. pkg_erlcron_name = erlcron
  1227. pkg_erlcron_description = Erlang cronish system
  1228. pkg_erlcron_homepage = https://github.com/erlware/erlcron
  1229. pkg_erlcron_fetch = git
  1230. pkg_erlcron_repo = https://github.com/erlware/erlcron
  1231. pkg_erlcron_commit = master
  1232. PACKAGES += erldb
  1233. pkg_erldb_name = erldb
  1234. pkg_erldb_description = ORM (Object-relational mapping) application implemented in Erlang
  1235. pkg_erldb_homepage = http://erldb.org
  1236. pkg_erldb_fetch = git
  1237. pkg_erldb_repo = https://github.com/erldb/erldb
  1238. pkg_erldb_commit = master
  1239. PACKAGES += erldis
  1240. pkg_erldis_name = erldis
  1241. pkg_erldis_description = redis erlang client library
  1242. pkg_erldis_homepage = https://github.com/cstar/erldis
  1243. pkg_erldis_fetch = git
  1244. pkg_erldis_repo = https://github.com/cstar/erldis
  1245. pkg_erldis_commit = master
  1246. PACKAGES += erldns
  1247. pkg_erldns_name = erldns
  1248. pkg_erldns_description = DNS server, in erlang.
  1249. pkg_erldns_homepage = https://github.com/aetrion/erl-dns
  1250. pkg_erldns_fetch = git
  1251. pkg_erldns_repo = https://github.com/aetrion/erl-dns
  1252. pkg_erldns_commit = master
  1253. PACKAGES += erldocker
  1254. pkg_erldocker_name = erldocker
  1255. pkg_erldocker_description = Docker Remote API client for Erlang
  1256. pkg_erldocker_homepage = https://github.com/proger/erldocker
  1257. pkg_erldocker_fetch = git
  1258. pkg_erldocker_repo = https://github.com/proger/erldocker
  1259. pkg_erldocker_commit = master
  1260. PACKAGES += erlfsmon
  1261. pkg_erlfsmon_name = erlfsmon
  1262. pkg_erlfsmon_description = Erlang filesystem event watcher for Linux and OSX
  1263. pkg_erlfsmon_homepage = https://github.com/proger/erlfsmon
  1264. pkg_erlfsmon_fetch = git
  1265. pkg_erlfsmon_repo = https://github.com/proger/erlfsmon
  1266. pkg_erlfsmon_commit = master
  1267. PACKAGES += erlgit
  1268. pkg_erlgit_name = erlgit
  1269. pkg_erlgit_description = Erlang convenience wrapper around git executable
  1270. pkg_erlgit_homepage = https://github.com/gleber/erlgit
  1271. pkg_erlgit_fetch = git
  1272. pkg_erlgit_repo = https://github.com/gleber/erlgit
  1273. pkg_erlgit_commit = master
  1274. PACKAGES += erlguten
  1275. pkg_erlguten_name = erlguten
  1276. pkg_erlguten_description = ErlGuten is a system for high-quality typesetting, written purely in Erlang.
  1277. pkg_erlguten_homepage = https://github.com/richcarl/erlguten
  1278. pkg_erlguten_fetch = git
  1279. pkg_erlguten_repo = https://github.com/richcarl/erlguten
  1280. pkg_erlguten_commit = master
  1281. PACKAGES += erlmc
  1282. pkg_erlmc_name = erlmc
  1283. pkg_erlmc_description = Erlang memcached binary protocol client
  1284. pkg_erlmc_homepage = https://github.com/jkvor/erlmc
  1285. pkg_erlmc_fetch = git
  1286. pkg_erlmc_repo = https://github.com/jkvor/erlmc
  1287. pkg_erlmc_commit = master
  1288. PACKAGES += erlmongo
  1289. pkg_erlmongo_name = erlmongo
  1290. pkg_erlmongo_description = Record based Erlang driver for MongoDB with gridfs support
  1291. pkg_erlmongo_homepage = https://github.com/SergejJurecko/erlmongo
  1292. pkg_erlmongo_fetch = git
  1293. pkg_erlmongo_repo = https://github.com/SergejJurecko/erlmongo
  1294. pkg_erlmongo_commit = master
  1295. PACKAGES += erlog
  1296. pkg_erlog_name = erlog
  1297. pkg_erlog_description = Prolog interpreter in and for Erlang
  1298. pkg_erlog_homepage = https://github.com/rvirding/erlog
  1299. pkg_erlog_fetch = git
  1300. pkg_erlog_repo = https://github.com/rvirding/erlog
  1301. pkg_erlog_commit = master
  1302. PACKAGES += erlpass
  1303. pkg_erlpass_name = erlpass
  1304. pkg_erlpass_description = A library to handle password hashing and changing in a safe manner, independent from any kind of storage whatsoever.
  1305. pkg_erlpass_homepage = https://github.com/ferd/erlpass
  1306. pkg_erlpass_fetch = git
  1307. pkg_erlpass_repo = https://github.com/ferd/erlpass
  1308. pkg_erlpass_commit = master
  1309. PACKAGES += erlport
  1310. pkg_erlport_name = erlport
  1311. pkg_erlport_description = ErlPort - connect Erlang to other languages
  1312. pkg_erlport_homepage = https://github.com/hdima/erlport
  1313. pkg_erlport_fetch = git
  1314. pkg_erlport_repo = https://github.com/hdima/erlport
  1315. pkg_erlport_commit = master
  1316. PACKAGES += erlsh
  1317. pkg_erlsh_name = erlsh
  1318. pkg_erlsh_description = Erlang shell tools
  1319. pkg_erlsh_homepage = https://github.com/proger/erlsh
  1320. pkg_erlsh_fetch = git
  1321. pkg_erlsh_repo = https://github.com/proger/erlsh
  1322. pkg_erlsh_commit = master
  1323. PACKAGES += erlsha2
  1324. pkg_erlsha2_name = erlsha2
  1325. pkg_erlsha2_description = SHA-224, SHA-256, SHA-384, SHA-512 implemented in Erlang NIFs.
  1326. pkg_erlsha2_homepage = https://github.com/vinoski/erlsha2
  1327. pkg_erlsha2_fetch = git
  1328. pkg_erlsha2_repo = https://github.com/vinoski/erlsha2
  1329. pkg_erlsha2_commit = master
  1330. PACKAGES += erlsom
  1331. pkg_erlsom_name = erlsom
  1332. pkg_erlsom_description = XML parser for Erlang
  1333. pkg_erlsom_homepage = https://github.com/willemdj/erlsom
  1334. pkg_erlsom_fetch = git
  1335. pkg_erlsom_repo = https://github.com/willemdj/erlsom
  1336. pkg_erlsom_commit = master
  1337. PACKAGES += erlubi
  1338. pkg_erlubi_name = erlubi
  1339. pkg_erlubi_description = Ubigraph Erlang Client (and Process Visualizer)
  1340. pkg_erlubi_homepage = https://github.com/krestenkrab/erlubi
  1341. pkg_erlubi_fetch = git
  1342. pkg_erlubi_repo = https://github.com/krestenkrab/erlubi
  1343. pkg_erlubi_commit = master
  1344. PACKAGES += erlvolt
  1345. pkg_erlvolt_name = erlvolt
  1346. pkg_erlvolt_description = VoltDB Erlang Client Driver
  1347. pkg_erlvolt_homepage = https://github.com/VoltDB/voltdb-client-erlang
  1348. pkg_erlvolt_fetch = git
  1349. pkg_erlvolt_repo = https://github.com/VoltDB/voltdb-client-erlang
  1350. pkg_erlvolt_commit = master
  1351. PACKAGES += erlware_commons
  1352. pkg_erlware_commons_name = erlware_commons
  1353. pkg_erlware_commons_description = Erlware Commons is an Erlware project focused on all aspects of reusable Erlang components.
  1354. pkg_erlware_commons_homepage = https://github.com/erlware/erlware_commons
  1355. pkg_erlware_commons_fetch = git
  1356. pkg_erlware_commons_repo = https://github.com/erlware/erlware_commons
  1357. pkg_erlware_commons_commit = master
  1358. PACKAGES += erlydtl
  1359. pkg_erlydtl_name = erlydtl
  1360. pkg_erlydtl_description = Django Template Language for Erlang.
  1361. pkg_erlydtl_homepage = https://github.com/erlydtl/erlydtl
  1362. pkg_erlydtl_fetch = git
  1363. pkg_erlydtl_repo = https://github.com/erlydtl/erlydtl
  1364. pkg_erlydtl_commit = master
  1365. PACKAGES += errd
  1366. pkg_errd_name = errd
  1367. pkg_errd_description = Erlang RRDTool library
  1368. pkg_errd_homepage = https://github.com/archaelus/errd
  1369. pkg_errd_fetch = git
  1370. pkg_errd_repo = https://github.com/archaelus/errd
  1371. pkg_errd_commit = master
  1372. PACKAGES += erserve
  1373. pkg_erserve_name = erserve
  1374. pkg_erserve_description = Erlang/Rserve communication interface
  1375. pkg_erserve_homepage = https://github.com/del/erserve
  1376. pkg_erserve_fetch = git
  1377. pkg_erserve_repo = https://github.com/del/erserve
  1378. pkg_erserve_commit = master
  1379. PACKAGES += erwa
  1380. pkg_erwa_name = erwa
  1381. pkg_erwa_description = A WAMP router and client written in Erlang.
  1382. pkg_erwa_homepage = https://github.com/bwegh/erwa
  1383. pkg_erwa_fetch = git
  1384. pkg_erwa_repo = https://github.com/bwegh/erwa
  1385. pkg_erwa_commit = master
  1386. PACKAGES += escalus
  1387. pkg_escalus_name = escalus
  1388. pkg_escalus_description = An XMPP client library in Erlang for conveniently testing XMPP servers
  1389. pkg_escalus_homepage = https://github.com/esl/escalus
  1390. pkg_escalus_fetch = git
  1391. pkg_escalus_repo = https://github.com/esl/escalus
  1392. pkg_escalus_commit = master
  1393. PACKAGES += esh_mk
  1394. pkg_esh_mk_name = esh_mk
  1395. pkg_esh_mk_description = esh template engine plugin for erlang.mk
  1396. pkg_esh_mk_homepage = https://github.com/crownedgrouse/esh.mk
  1397. pkg_esh_mk_fetch = git
  1398. pkg_esh_mk_repo = https://github.com/crownedgrouse/esh.mk.git
  1399. pkg_esh_mk_commit = master
  1400. PACKAGES += espec
  1401. pkg_espec_name = espec
  1402. pkg_espec_description = ESpec: Behaviour driven development framework for Erlang
  1403. pkg_espec_homepage = https://github.com/lucaspiller/espec
  1404. pkg_espec_fetch = git
  1405. pkg_espec_repo = https://github.com/lucaspiller/espec
  1406. pkg_espec_commit = master
  1407. PACKAGES += estatsd
  1408. pkg_estatsd_name = estatsd
  1409. pkg_estatsd_description = Erlang stats aggregation app that periodically flushes data to graphite
  1410. pkg_estatsd_homepage = https://github.com/RJ/estatsd
  1411. pkg_estatsd_fetch = git
  1412. pkg_estatsd_repo = https://github.com/RJ/estatsd
  1413. pkg_estatsd_commit = master
  1414. PACKAGES += etap
  1415. pkg_etap_name = etap
  1416. pkg_etap_description = etap is a simple erlang testing library that provides TAP compliant output.
  1417. pkg_etap_homepage = https://github.com/ngerakines/etap
  1418. pkg_etap_fetch = git
  1419. pkg_etap_repo = https://github.com/ngerakines/etap
  1420. pkg_etap_commit = master
  1421. PACKAGES += etest
  1422. pkg_etest_name = etest
  1423. pkg_etest_description = A lightweight, convention over configuration test framework for Erlang
  1424. pkg_etest_homepage = https://github.com/wooga/etest
  1425. pkg_etest_fetch = git
  1426. pkg_etest_repo = https://github.com/wooga/etest
  1427. pkg_etest_commit = master
  1428. PACKAGES += etest_http
  1429. pkg_etest_http_name = etest_http
  1430. pkg_etest_http_description = etest Assertions around HTTP (client-side)
  1431. pkg_etest_http_homepage = https://github.com/wooga/etest_http
  1432. pkg_etest_http_fetch = git
  1433. pkg_etest_http_repo = https://github.com/wooga/etest_http
  1434. pkg_etest_http_commit = master
  1435. PACKAGES += etoml
  1436. pkg_etoml_name = etoml
  1437. pkg_etoml_description = TOML language erlang parser
  1438. pkg_etoml_homepage = https://github.com/kalta/etoml
  1439. pkg_etoml_fetch = git
  1440. pkg_etoml_repo = https://github.com/kalta/etoml
  1441. pkg_etoml_commit = master
  1442. PACKAGES += eunit
  1443. pkg_eunit_name = eunit
  1444. pkg_eunit_description = The EUnit lightweight unit testing framework for Erlang - this is the canonical development repository.
  1445. pkg_eunit_homepage = https://github.com/richcarl/eunit
  1446. pkg_eunit_fetch = git
  1447. pkg_eunit_repo = https://github.com/richcarl/eunit
  1448. pkg_eunit_commit = master
  1449. PACKAGES += eunit_formatters
  1450. pkg_eunit_formatters_name = eunit_formatters
  1451. pkg_eunit_formatters_description = Because eunit's output sucks. Let's make it better.
  1452. pkg_eunit_formatters_homepage = https://github.com/seancribbs/eunit_formatters
  1453. pkg_eunit_formatters_fetch = git
  1454. pkg_eunit_formatters_repo = https://github.com/seancribbs/eunit_formatters
  1455. pkg_eunit_formatters_commit = master
  1456. PACKAGES += euthanasia
  1457. pkg_euthanasia_name = euthanasia
  1458. pkg_euthanasia_description = Merciful killer for your Erlang processes
  1459. pkg_euthanasia_homepage = https://github.com/doubleyou/euthanasia
  1460. pkg_euthanasia_fetch = git
  1461. pkg_euthanasia_repo = https://github.com/doubleyou/euthanasia
  1462. pkg_euthanasia_commit = master
  1463. PACKAGES += evum
  1464. pkg_evum_name = evum
  1465. pkg_evum_description = Spawn Linux VMs as Erlang processes in the Erlang VM
  1466. pkg_evum_homepage = https://github.com/msantos/evum
  1467. pkg_evum_fetch = git
  1468. pkg_evum_repo = https://github.com/msantos/evum
  1469. pkg_evum_commit = master
  1470. PACKAGES += exec
  1471. pkg_exec_name = erlexec
  1472. pkg_exec_description = Execute and control OS processes from Erlang/OTP.
  1473. pkg_exec_homepage = http://saleyn.github.com/erlexec
  1474. pkg_exec_fetch = git
  1475. pkg_exec_repo = https://github.com/saleyn/erlexec
  1476. pkg_exec_commit = master
  1477. PACKAGES += exml
  1478. pkg_exml_name = exml
  1479. pkg_exml_description = XML parsing library in Erlang
  1480. pkg_exml_homepage = https://github.com/paulgray/exml
  1481. pkg_exml_fetch = git
  1482. pkg_exml_repo = https://github.com/paulgray/exml
  1483. pkg_exml_commit = master
  1484. PACKAGES += exometer
  1485. pkg_exometer_name = exometer
  1486. pkg_exometer_description = Basic measurement objects and probe behavior
  1487. pkg_exometer_homepage = https://github.com/Feuerlabs/exometer
  1488. pkg_exometer_fetch = git
  1489. pkg_exometer_repo = https://github.com/Feuerlabs/exometer
  1490. pkg_exometer_commit = master
  1491. PACKAGES += exs1024
  1492. pkg_exs1024_name = exs1024
  1493. pkg_exs1024_description = Xorshift1024star pseudo random number generator for Erlang.
  1494. pkg_exs1024_homepage = https://github.com/jj1bdx/exs1024
  1495. pkg_exs1024_fetch = git
  1496. pkg_exs1024_repo = https://github.com/jj1bdx/exs1024
  1497. pkg_exs1024_commit = master
  1498. PACKAGES += exs64
  1499. pkg_exs64_name = exs64
  1500. pkg_exs64_description = Xorshift64star pseudo random number generator for Erlang.
  1501. pkg_exs64_homepage = https://github.com/jj1bdx/exs64
  1502. pkg_exs64_fetch = git
  1503. pkg_exs64_repo = https://github.com/jj1bdx/exs64
  1504. pkg_exs64_commit = master
  1505. PACKAGES += exsplus116
  1506. pkg_exsplus116_name = exsplus116
  1507. pkg_exsplus116_description = Xorshift116plus for Erlang
  1508. pkg_exsplus116_homepage = https://github.com/jj1bdx/exsplus116
  1509. pkg_exsplus116_fetch = git
  1510. pkg_exsplus116_repo = https://github.com/jj1bdx/exsplus116
  1511. pkg_exsplus116_commit = master
  1512. PACKAGES += exsplus128
  1513. pkg_exsplus128_name = exsplus128
  1514. pkg_exsplus128_description = Xorshift128plus pseudo random number generator for Erlang.
  1515. pkg_exsplus128_homepage = https://github.com/jj1bdx/exsplus128
  1516. pkg_exsplus128_fetch = git
  1517. pkg_exsplus128_repo = https://github.com/jj1bdx/exsplus128
  1518. pkg_exsplus128_commit = master
  1519. PACKAGES += ezmq
  1520. pkg_ezmq_name = ezmq
  1521. pkg_ezmq_description = zMQ implemented in Erlang
  1522. pkg_ezmq_homepage = https://github.com/RoadRunnr/ezmq
  1523. pkg_ezmq_fetch = git
  1524. pkg_ezmq_repo = https://github.com/RoadRunnr/ezmq
  1525. pkg_ezmq_commit = master
  1526. PACKAGES += ezmtp
  1527. pkg_ezmtp_name = ezmtp
  1528. pkg_ezmtp_description = ZMTP protocol in pure Erlang.
  1529. pkg_ezmtp_homepage = https://github.com/a13x/ezmtp
  1530. pkg_ezmtp_fetch = git
  1531. pkg_ezmtp_repo = https://github.com/a13x/ezmtp
  1532. pkg_ezmtp_commit = master
  1533. PACKAGES += fast_disk_log
  1534. pkg_fast_disk_log_name = fast_disk_log
  1535. pkg_fast_disk_log_description = Pool-based asynchronous Erlang disk logger
  1536. pkg_fast_disk_log_homepage = https://github.com/lpgauth/fast_disk_log
  1537. pkg_fast_disk_log_fetch = git
  1538. pkg_fast_disk_log_repo = https://github.com/lpgauth/fast_disk_log
  1539. pkg_fast_disk_log_commit = master
  1540. PACKAGES += feeder
  1541. pkg_feeder_name = feeder
  1542. pkg_feeder_description = Stream parse RSS and Atom formatted XML feeds.
  1543. pkg_feeder_homepage = https://github.com/michaelnisi/feeder
  1544. pkg_feeder_fetch = git
  1545. pkg_feeder_repo = https://github.com/michaelnisi/feeder
  1546. pkg_feeder_commit = master
  1547. PACKAGES += find_crate
  1548. pkg_find_crate_name = find_crate
  1549. pkg_find_crate_description = Find Rust libs and exes in Erlang application priv directory
  1550. pkg_find_crate_homepage = https://github.com/goertzenator/find_crate
  1551. pkg_find_crate_fetch = git
  1552. pkg_find_crate_repo = https://github.com/goertzenator/find_crate
  1553. pkg_find_crate_commit = master
  1554. PACKAGES += fix
  1555. pkg_fix_name = fix
  1556. pkg_fix_description = http://fixprotocol.org/ implementation.
  1557. pkg_fix_homepage = https://github.com/maxlapshin/fix
  1558. pkg_fix_fetch = git
  1559. pkg_fix_repo = https://github.com/maxlapshin/fix
  1560. pkg_fix_commit = master
  1561. PACKAGES += flower
  1562. pkg_flower_name = flower
  1563. pkg_flower_description = FlowER - a Erlang OpenFlow development platform
  1564. pkg_flower_homepage = https://github.com/travelping/flower
  1565. pkg_flower_fetch = git
  1566. pkg_flower_repo = https://github.com/travelping/flower
  1567. pkg_flower_commit = master
  1568. PACKAGES += fn
  1569. pkg_fn_name = fn
  1570. pkg_fn_description = Function utilities for Erlang
  1571. pkg_fn_homepage = https://github.com/reiddraper/fn
  1572. pkg_fn_fetch = git
  1573. pkg_fn_repo = https://github.com/reiddraper/fn
  1574. pkg_fn_commit = master
  1575. PACKAGES += folsom
  1576. pkg_folsom_name = folsom
  1577. pkg_folsom_description = Expose Erlang Events and Metrics
  1578. pkg_folsom_homepage = https://github.com/boundary/folsom
  1579. pkg_folsom_fetch = git
  1580. pkg_folsom_repo = https://github.com/boundary/folsom
  1581. pkg_folsom_commit = master
  1582. PACKAGES += folsom_cowboy
  1583. pkg_folsom_cowboy_name = folsom_cowboy
  1584. pkg_folsom_cowboy_description = A Cowboy based Folsom HTTP Wrapper.
  1585. pkg_folsom_cowboy_homepage = https://github.com/boundary/folsom_cowboy
  1586. pkg_folsom_cowboy_fetch = git
  1587. pkg_folsom_cowboy_repo = https://github.com/boundary/folsom_cowboy
  1588. pkg_folsom_cowboy_commit = master
  1589. PACKAGES += folsomite
  1590. pkg_folsomite_name = folsomite
  1591. pkg_folsomite_description = blow up your graphite / riemann server with folsom metrics
  1592. pkg_folsomite_homepage = https://github.com/campanja/folsomite
  1593. pkg_folsomite_fetch = git
  1594. pkg_folsomite_repo = https://github.com/campanja/folsomite
  1595. pkg_folsomite_commit = master
  1596. PACKAGES += fs
  1597. pkg_fs_name = fs
  1598. pkg_fs_description = Erlang FileSystem Listener
  1599. pkg_fs_homepage = https://github.com/synrc/fs
  1600. pkg_fs_fetch = git
  1601. pkg_fs_repo = https://github.com/synrc/fs
  1602. pkg_fs_commit = master
  1603. PACKAGES += fuse
  1604. pkg_fuse_name = fuse
  1605. pkg_fuse_description = A Circuit Breaker for Erlang
  1606. pkg_fuse_homepage = https://github.com/jlouis/fuse
  1607. pkg_fuse_fetch = git
  1608. pkg_fuse_repo = https://github.com/jlouis/fuse
  1609. pkg_fuse_commit = master
  1610. PACKAGES += gcm
  1611. pkg_gcm_name = gcm
  1612. pkg_gcm_description = An Erlang application for Google Cloud Messaging
  1613. pkg_gcm_homepage = https://github.com/pdincau/gcm-erlang
  1614. pkg_gcm_fetch = git
  1615. pkg_gcm_repo = https://github.com/pdincau/gcm-erlang
  1616. pkg_gcm_commit = master
  1617. PACKAGES += gcprof
  1618. pkg_gcprof_name = gcprof
  1619. pkg_gcprof_description = Garbage Collection profiler for Erlang
  1620. pkg_gcprof_homepage = https://github.com/knutin/gcprof
  1621. pkg_gcprof_fetch = git
  1622. pkg_gcprof_repo = https://github.com/knutin/gcprof
  1623. pkg_gcprof_commit = master
  1624. PACKAGES += geas
  1625. pkg_geas_name = geas
  1626. pkg_geas_description = Guess Erlang Application Scattering
  1627. pkg_geas_homepage = https://github.com/crownedgrouse/geas
  1628. pkg_geas_fetch = git
  1629. pkg_geas_repo = https://github.com/crownedgrouse/geas
  1630. pkg_geas_commit = master
  1631. PACKAGES += geef
  1632. pkg_geef_name = geef
  1633. pkg_geef_description = Git NEEEEF (Erlang NIF)
  1634. pkg_geef_homepage = https://github.com/carlosmn/geef
  1635. pkg_geef_fetch = git
  1636. pkg_geef_repo = https://github.com/carlosmn/geef
  1637. pkg_geef_commit = master
  1638. PACKAGES += gen_coap
  1639. pkg_gen_coap_name = gen_coap
  1640. pkg_gen_coap_description = Generic Erlang CoAP Client/Server
  1641. pkg_gen_coap_homepage = https://github.com/gotthardp/gen_coap
  1642. pkg_gen_coap_fetch = git
  1643. pkg_gen_coap_repo = https://github.com/gotthardp/gen_coap
  1644. pkg_gen_coap_commit = master
  1645. PACKAGES += gen_cycle
  1646. pkg_gen_cycle_name = gen_cycle
  1647. pkg_gen_cycle_description = Simple, generic OTP behaviour for recurring tasks
  1648. pkg_gen_cycle_homepage = https://github.com/aerosol/gen_cycle
  1649. pkg_gen_cycle_fetch = git
  1650. pkg_gen_cycle_repo = https://github.com/aerosol/gen_cycle
  1651. pkg_gen_cycle_commit = develop
  1652. PACKAGES += gen_icmp
  1653. pkg_gen_icmp_name = gen_icmp
  1654. pkg_gen_icmp_description = Erlang interface to ICMP sockets
  1655. pkg_gen_icmp_homepage = https://github.com/msantos/gen_icmp
  1656. pkg_gen_icmp_fetch = git
  1657. pkg_gen_icmp_repo = https://github.com/msantos/gen_icmp
  1658. pkg_gen_icmp_commit = master
  1659. PACKAGES += gen_leader
  1660. pkg_gen_leader_name = gen_leader
  1661. pkg_gen_leader_description = leader election behavior
  1662. pkg_gen_leader_homepage = https://github.com/garret-smith/gen_leader_revival
  1663. pkg_gen_leader_fetch = git
  1664. pkg_gen_leader_repo = https://github.com/garret-smith/gen_leader_revival
  1665. pkg_gen_leader_commit = master
  1666. PACKAGES += gen_nb_server
  1667. pkg_gen_nb_server_name = gen_nb_server
  1668. pkg_gen_nb_server_description = OTP behavior for writing non-blocking servers
  1669. pkg_gen_nb_server_homepage = https://github.com/kevsmith/gen_nb_server
  1670. pkg_gen_nb_server_fetch = git
  1671. pkg_gen_nb_server_repo = https://github.com/kevsmith/gen_nb_server
  1672. pkg_gen_nb_server_commit = master
  1673. PACKAGES += gen_paxos
  1674. pkg_gen_paxos_name = gen_paxos
  1675. pkg_gen_paxos_description = An Erlang/OTP-style implementation of the PAXOS distributed consensus protocol
  1676. pkg_gen_paxos_homepage = https://github.com/gburd/gen_paxos
  1677. pkg_gen_paxos_fetch = git
  1678. pkg_gen_paxos_repo = https://github.com/gburd/gen_paxos
  1679. pkg_gen_paxos_commit = master
  1680. PACKAGES += gen_rpc
  1681. pkg_gen_rpc_name = gen_rpc
  1682. pkg_gen_rpc_description = A scalable RPC library for Erlang-VM based languages
  1683. pkg_gen_rpc_homepage = https://github.com/priestjim/gen_rpc.git
  1684. pkg_gen_rpc_fetch = git
  1685. pkg_gen_rpc_repo = https://github.com/priestjim/gen_rpc.git
  1686. pkg_gen_rpc_commit = master
  1687. PACKAGES += gen_smtp
  1688. pkg_gen_smtp_name = gen_smtp
  1689. pkg_gen_smtp_description = A generic Erlang SMTP server and client that can be extended via callback modules
  1690. pkg_gen_smtp_homepage = https://github.com/Vagabond/gen_smtp
  1691. pkg_gen_smtp_fetch = git
  1692. pkg_gen_smtp_repo = https://github.com/Vagabond/gen_smtp
  1693. pkg_gen_smtp_commit = master
  1694. PACKAGES += gen_tracker
  1695. pkg_gen_tracker_name = gen_tracker
  1696. pkg_gen_tracker_description = supervisor with ets handling of children and their metadata
  1697. pkg_gen_tracker_homepage = https://github.com/erlyvideo/gen_tracker
  1698. pkg_gen_tracker_fetch = git
  1699. pkg_gen_tracker_repo = https://github.com/erlyvideo/gen_tracker
  1700. pkg_gen_tracker_commit = master
  1701. PACKAGES += gen_unix
  1702. pkg_gen_unix_name = gen_unix
  1703. pkg_gen_unix_description = Erlang Unix socket interface
  1704. pkg_gen_unix_homepage = https://github.com/msantos/gen_unix
  1705. pkg_gen_unix_fetch = git
  1706. pkg_gen_unix_repo = https://github.com/msantos/gen_unix
  1707. pkg_gen_unix_commit = master
  1708. PACKAGES += geode
  1709. pkg_geode_name = geode
  1710. pkg_geode_description = geohash/proximity lookup in pure, uncut erlang.
  1711. pkg_geode_homepage = https://github.com/bradfordw/geode
  1712. pkg_geode_fetch = git
  1713. pkg_geode_repo = https://github.com/bradfordw/geode
  1714. pkg_geode_commit = master
  1715. PACKAGES += getopt
  1716. pkg_getopt_name = getopt
  1717. pkg_getopt_description = Module to parse command line arguments using the GNU getopt syntax
  1718. pkg_getopt_homepage = https://github.com/jcomellas/getopt
  1719. pkg_getopt_fetch = git
  1720. pkg_getopt_repo = https://github.com/jcomellas/getopt
  1721. pkg_getopt_commit = master
  1722. PACKAGES += gettext
  1723. pkg_gettext_name = gettext
  1724. pkg_gettext_description = Erlang internationalization library.
  1725. pkg_gettext_homepage = https://github.com/etnt/gettext
  1726. pkg_gettext_fetch = git
  1727. pkg_gettext_repo = https://github.com/etnt/gettext
  1728. pkg_gettext_commit = master
  1729. PACKAGES += giallo
  1730. pkg_giallo_name = giallo
  1731. pkg_giallo_description = Small and flexible web framework on top of Cowboy
  1732. pkg_giallo_homepage = https://github.com/kivra/giallo
  1733. pkg_giallo_fetch = git
  1734. pkg_giallo_repo = https://github.com/kivra/giallo
  1735. pkg_giallo_commit = master
  1736. PACKAGES += gin
  1737. pkg_gin_name = gin
  1738. pkg_gin_description = The guards and for Erlang parse_transform
  1739. pkg_gin_homepage = https://github.com/mad-cocktail/gin
  1740. pkg_gin_fetch = git
  1741. pkg_gin_repo = https://github.com/mad-cocktail/gin
  1742. pkg_gin_commit = master
  1743. PACKAGES += gitty
  1744. pkg_gitty_name = gitty
  1745. pkg_gitty_description = Git access in erlang
  1746. pkg_gitty_homepage = https://github.com/maxlapshin/gitty
  1747. pkg_gitty_fetch = git
  1748. pkg_gitty_repo = https://github.com/maxlapshin/gitty
  1749. pkg_gitty_commit = master
  1750. PACKAGES += gold_fever
  1751. pkg_gold_fever_name = gold_fever
  1752. pkg_gold_fever_description = A Treasure Hunt for Erlangers
  1753. pkg_gold_fever_homepage = https://github.com/inaka/gold_fever
  1754. pkg_gold_fever_fetch = git
  1755. pkg_gold_fever_repo = https://github.com/inaka/gold_fever
  1756. pkg_gold_fever_commit = master
  1757. PACKAGES += gpb
  1758. pkg_gpb_name = gpb
  1759. pkg_gpb_description = A Google Protobuf implementation for Erlang
  1760. pkg_gpb_homepage = https://github.com/tomas-abrahamsson/gpb
  1761. pkg_gpb_fetch = git
  1762. pkg_gpb_repo = https://github.com/tomas-abrahamsson/gpb
  1763. pkg_gpb_commit = master
  1764. PACKAGES += gproc
  1765. pkg_gproc_name = gproc
  1766. pkg_gproc_description = Extended process registry for Erlang
  1767. pkg_gproc_homepage = https://github.com/uwiger/gproc
  1768. pkg_gproc_fetch = git
  1769. pkg_gproc_repo = https://github.com/uwiger/gproc
  1770. pkg_gproc_commit = master
  1771. PACKAGES += grapherl
  1772. pkg_grapherl_name = grapherl
  1773. pkg_grapherl_description = Create graphs of Erlang systems and programs
  1774. pkg_grapherl_homepage = https://github.com/eproxus/grapherl
  1775. pkg_grapherl_fetch = git
  1776. pkg_grapherl_repo = https://github.com/eproxus/grapherl
  1777. pkg_grapherl_commit = master
  1778. PACKAGES += grpc
  1779. pkg_grpc_name = grpc
  1780. pkg_grpc_description = gRPC server in Erlang
  1781. pkg_grpc_homepage = https://github.com/Bluehouse-Technology/grpc
  1782. pkg_grpc_fetch = git
  1783. pkg_grpc_repo = https://github.com/Bluehouse-Technology/grpc
  1784. pkg_grpc_commit = master
  1785. PACKAGES += grpc_client
  1786. pkg_grpc_client_name = grpc_client
  1787. pkg_grpc_client_description = gRPC client in Erlang
  1788. pkg_grpc_client_homepage = https://github.com/Bluehouse-Technology/grpc_client
  1789. pkg_grpc_client_fetch = git
  1790. pkg_grpc_client_repo = https://github.com/Bluehouse-Technology/grpc_client
  1791. pkg_grpc_client_commit = master
  1792. PACKAGES += gun
  1793. pkg_gun_name = gun
  1794. pkg_gun_description = Asynchronous SPDY, HTTP and Websocket client written in Erlang.
  1795. pkg_gun_homepage = http//ninenines.eu
  1796. pkg_gun_fetch = git
  1797. pkg_gun_repo = https://github.com/ninenines/gun
  1798. pkg_gun_commit = master
  1799. PACKAGES += gut
  1800. pkg_gut_name = gut
  1801. pkg_gut_description = gut is a template printing, aka scaffolding, tool for Erlang. Like rails generate or yeoman
  1802. pkg_gut_homepage = https://github.com/unbalancedparentheses/gut
  1803. pkg_gut_fetch = git
  1804. pkg_gut_repo = https://github.com/unbalancedparentheses/gut
  1805. pkg_gut_commit = master
  1806. PACKAGES += hackney
  1807. pkg_hackney_name = hackney
  1808. pkg_hackney_description = simple HTTP client in Erlang
  1809. pkg_hackney_homepage = https://github.com/benoitc/hackney
  1810. pkg_hackney_fetch = git
  1811. pkg_hackney_repo = https://github.com/benoitc/hackney
  1812. pkg_hackney_commit = master
  1813. PACKAGES += hamcrest
  1814. pkg_hamcrest_name = hamcrest
  1815. pkg_hamcrest_description = Erlang port of Hamcrest
  1816. pkg_hamcrest_homepage = https://github.com/hyperthunk/hamcrest-erlang
  1817. pkg_hamcrest_fetch = git
  1818. pkg_hamcrest_repo = https://github.com/hyperthunk/hamcrest-erlang
  1819. pkg_hamcrest_commit = master
  1820. PACKAGES += hanoidb
  1821. pkg_hanoidb_name = hanoidb
  1822. pkg_hanoidb_description = Erlang LSM BTree Storage
  1823. pkg_hanoidb_homepage = https://github.com/krestenkrab/hanoidb
  1824. pkg_hanoidb_fetch = git
  1825. pkg_hanoidb_repo = https://github.com/krestenkrab/hanoidb
  1826. pkg_hanoidb_commit = master
  1827. PACKAGES += hottub
  1828. pkg_hottub_name = hottub
  1829. pkg_hottub_description = Permanent Erlang Worker Pool
  1830. pkg_hottub_homepage = https://github.com/bfrog/hottub
  1831. pkg_hottub_fetch = git
  1832. pkg_hottub_repo = https://github.com/bfrog/hottub
  1833. pkg_hottub_commit = master
  1834. PACKAGES += hpack
  1835. pkg_hpack_name = hpack
  1836. pkg_hpack_description = HPACK Implementation for Erlang
  1837. pkg_hpack_homepage = https://github.com/joedevivo/hpack
  1838. pkg_hpack_fetch = git
  1839. pkg_hpack_repo = https://github.com/joedevivo/hpack
  1840. pkg_hpack_commit = master
  1841. PACKAGES += hyper
  1842. pkg_hyper_name = hyper
  1843. pkg_hyper_description = Erlang implementation of HyperLogLog
  1844. pkg_hyper_homepage = https://github.com/GameAnalytics/hyper
  1845. pkg_hyper_fetch = git
  1846. pkg_hyper_repo = https://github.com/GameAnalytics/hyper
  1847. pkg_hyper_commit = master
  1848. PACKAGES += i18n
  1849. pkg_i18n_name = i18n
  1850. pkg_i18n_description = International components for unicode from Erlang (unicode, date, string, number, format, locale, localization, transliteration, icu4e)
  1851. pkg_i18n_homepage = https://github.com/erlang-unicode/i18n
  1852. pkg_i18n_fetch = git
  1853. pkg_i18n_repo = https://github.com/erlang-unicode/i18n
  1854. pkg_i18n_commit = master
  1855. PACKAGES += ibrowse
  1856. pkg_ibrowse_name = ibrowse
  1857. pkg_ibrowse_description = Erlang HTTP client
  1858. pkg_ibrowse_homepage = https://github.com/cmullaparthi/ibrowse
  1859. pkg_ibrowse_fetch = git
  1860. pkg_ibrowse_repo = https://github.com/cmullaparthi/ibrowse
  1861. pkg_ibrowse_commit = master
  1862. PACKAGES += idna
  1863. pkg_idna_name = idna
  1864. pkg_idna_description = Erlang IDNA lib
  1865. pkg_idna_homepage = https://github.com/benoitc/erlang-idna
  1866. pkg_idna_fetch = git
  1867. pkg_idna_repo = https://github.com/benoitc/erlang-idna
  1868. pkg_idna_commit = master
  1869. PACKAGES += ierlang
  1870. pkg_ierlang_name = ierlang
  1871. pkg_ierlang_description = An Erlang language kernel for IPython.
  1872. pkg_ierlang_homepage = https://github.com/robbielynch/ierlang
  1873. pkg_ierlang_fetch = git
  1874. pkg_ierlang_repo = https://github.com/robbielynch/ierlang
  1875. pkg_ierlang_commit = master
  1876. PACKAGES += iota
  1877. pkg_iota_name = iota
  1878. pkg_iota_description = iota (Inter-dependency Objective Testing Apparatus) - a tool to enforce clean separation of responsibilities in Erlang code
  1879. pkg_iota_homepage = https://github.com/jpgneves/iota
  1880. pkg_iota_fetch = git
  1881. pkg_iota_repo = https://github.com/jpgneves/iota
  1882. pkg_iota_commit = master
  1883. PACKAGES += irc_lib
  1884. pkg_irc_lib_name = irc_lib
  1885. pkg_irc_lib_description = Erlang irc client library
  1886. pkg_irc_lib_homepage = https://github.com/OtpChatBot/irc_lib
  1887. pkg_irc_lib_fetch = git
  1888. pkg_irc_lib_repo = https://github.com/OtpChatBot/irc_lib
  1889. pkg_irc_lib_commit = master
  1890. PACKAGES += ircd
  1891. pkg_ircd_name = ircd
  1892. pkg_ircd_description = A pluggable IRC daemon application/library for Erlang.
  1893. pkg_ircd_homepage = https://github.com/tonyg/erlang-ircd
  1894. pkg_ircd_fetch = git
  1895. pkg_ircd_repo = https://github.com/tonyg/erlang-ircd
  1896. pkg_ircd_commit = master
  1897. PACKAGES += iris
  1898. pkg_iris_name = iris
  1899. pkg_iris_description = Iris Erlang binding
  1900. pkg_iris_homepage = https://github.com/project-iris/iris-erl
  1901. pkg_iris_fetch = git
  1902. pkg_iris_repo = https://github.com/project-iris/iris-erl
  1903. pkg_iris_commit = master
  1904. PACKAGES += iso8601
  1905. pkg_iso8601_name = iso8601
  1906. pkg_iso8601_description = Erlang ISO 8601 date formatter/parser
  1907. pkg_iso8601_homepage = https://github.com/seansawyer/erlang_iso8601
  1908. pkg_iso8601_fetch = git
  1909. pkg_iso8601_repo = https://github.com/seansawyer/erlang_iso8601
  1910. pkg_iso8601_commit = master
  1911. PACKAGES += jamdb_sybase
  1912. pkg_jamdb_sybase_name = jamdb_sybase
  1913. pkg_jamdb_sybase_description = Erlang driver for SAP Sybase ASE
  1914. pkg_jamdb_sybase_homepage = https://github.com/erlangbureau/jamdb_sybase
  1915. pkg_jamdb_sybase_fetch = git
  1916. pkg_jamdb_sybase_repo = https://github.com/erlangbureau/jamdb_sybase
  1917. pkg_jamdb_sybase_commit = master
  1918. PACKAGES += jerg
  1919. pkg_jerg_name = jerg
  1920. pkg_jerg_description = JSON Schema to Erlang Records Generator
  1921. pkg_jerg_homepage = https://github.com/ddossot/jerg
  1922. pkg_jerg_fetch = git
  1923. pkg_jerg_repo = https://github.com/ddossot/jerg
  1924. pkg_jerg_commit = master
  1925. PACKAGES += jesse
  1926. pkg_jesse_name = jesse
  1927. pkg_jesse_description = jesse (JSon Schema Erlang) is an implementation of a json schema validator for Erlang.
  1928. pkg_jesse_homepage = https://github.com/for-GET/jesse
  1929. pkg_jesse_fetch = git
  1930. pkg_jesse_repo = https://github.com/for-GET/jesse
  1931. pkg_jesse_commit = master
  1932. PACKAGES += jiffy
  1933. pkg_jiffy_name = jiffy
  1934. pkg_jiffy_description = JSON NIFs for Erlang.
  1935. pkg_jiffy_homepage = https://github.com/davisp/jiffy
  1936. pkg_jiffy_fetch = git
  1937. pkg_jiffy_repo = https://github.com/davisp/jiffy
  1938. pkg_jiffy_commit = master
  1939. PACKAGES += jiffy_v
  1940. pkg_jiffy_v_name = jiffy_v
  1941. pkg_jiffy_v_description = JSON validation utility
  1942. pkg_jiffy_v_homepage = https://github.com/shizzard/jiffy-v
  1943. pkg_jiffy_v_fetch = git
  1944. pkg_jiffy_v_repo = https://github.com/shizzard/jiffy-v
  1945. pkg_jiffy_v_commit = master
  1946. PACKAGES += jobs
  1947. pkg_jobs_name = jobs
  1948. pkg_jobs_description = a Job scheduler for load regulation
  1949. pkg_jobs_homepage = https://github.com/esl/jobs
  1950. pkg_jobs_fetch = git
  1951. pkg_jobs_repo = https://github.com/esl/jobs
  1952. pkg_jobs_commit = master
  1953. PACKAGES += joxa
  1954. pkg_joxa_name = joxa
  1955. pkg_joxa_description = A Modern Lisp for the Erlang VM
  1956. pkg_joxa_homepage = https://github.com/joxa/joxa
  1957. pkg_joxa_fetch = git
  1958. pkg_joxa_repo = https://github.com/joxa/joxa
  1959. pkg_joxa_commit = master
  1960. PACKAGES += json
  1961. pkg_json_name = json
  1962. pkg_json_description = a high level json library for erlang (17.0+)
  1963. pkg_json_homepage = https://github.com/talentdeficit/json
  1964. pkg_json_fetch = git
  1965. pkg_json_repo = https://github.com/talentdeficit/json
  1966. pkg_json_commit = master
  1967. PACKAGES += json_rec
  1968. pkg_json_rec_name = json_rec
  1969. pkg_json_rec_description = JSON to erlang record
  1970. pkg_json_rec_homepage = https://github.com/justinkirby/json_rec
  1971. pkg_json_rec_fetch = git
  1972. pkg_json_rec_repo = https://github.com/justinkirby/json_rec
  1973. pkg_json_rec_commit = master
  1974. PACKAGES += jsone
  1975. pkg_jsone_name = jsone
  1976. pkg_jsone_description = An Erlang library for encoding, decoding JSON data.
  1977. pkg_jsone_homepage = https://github.com/sile/jsone.git
  1978. pkg_jsone_fetch = git
  1979. pkg_jsone_repo = https://github.com/sile/jsone.git
  1980. pkg_jsone_commit = master
  1981. PACKAGES += jsonerl
  1982. pkg_jsonerl_name = jsonerl
  1983. pkg_jsonerl_description = yet another but slightly different erlang <-> json encoder/decoder
  1984. pkg_jsonerl_homepage = https://github.com/lambder/jsonerl
  1985. pkg_jsonerl_fetch = git
  1986. pkg_jsonerl_repo = https://github.com/lambder/jsonerl
  1987. pkg_jsonerl_commit = master
  1988. PACKAGES += jsonpath
  1989. pkg_jsonpath_name = jsonpath
  1990. pkg_jsonpath_description = Fast Erlang JSON data retrieval and updates via javascript-like notation
  1991. pkg_jsonpath_homepage = https://github.com/GeneStevens/jsonpath
  1992. pkg_jsonpath_fetch = git
  1993. pkg_jsonpath_repo = https://github.com/GeneStevens/jsonpath
  1994. pkg_jsonpath_commit = master
  1995. PACKAGES += jsonx
  1996. pkg_jsonx_name = jsonx
  1997. pkg_jsonx_description = JSONX is an Erlang library for efficient decode and encode JSON, written in C.
  1998. pkg_jsonx_homepage = https://github.com/iskra/jsonx
  1999. pkg_jsonx_fetch = git
  2000. pkg_jsonx_repo = https://github.com/iskra/jsonx
  2001. pkg_jsonx_commit = master
  2002. PACKAGES += jsx
  2003. pkg_jsx_name = jsx
  2004. pkg_jsx_description = An Erlang application for consuming, producing and manipulating JSON.
  2005. pkg_jsx_homepage = https://github.com/talentdeficit/jsx
  2006. pkg_jsx_fetch = git
  2007. pkg_jsx_repo = https://github.com/talentdeficit/jsx
  2008. pkg_jsx_commit = main
  2009. PACKAGES += kafka
  2010. pkg_kafka_name = kafka
  2011. pkg_kafka_description = Kafka consumer and producer in Erlang
  2012. pkg_kafka_homepage = https://github.com/wooga/kafka-erlang
  2013. pkg_kafka_fetch = git
  2014. pkg_kafka_repo = https://github.com/wooga/kafka-erlang
  2015. pkg_kafka_commit = master
  2016. PACKAGES += kafka_protocol
  2017. pkg_kafka_protocol_name = kafka_protocol
  2018. pkg_kafka_protocol_description = Kafka protocol Erlang library
  2019. pkg_kafka_protocol_homepage = https://github.com/klarna/kafka_protocol
  2020. pkg_kafka_protocol_fetch = git
  2021. pkg_kafka_protocol_repo = https://github.com/klarna/kafka_protocol.git
  2022. pkg_kafka_protocol_commit = master
  2023. PACKAGES += kai
  2024. pkg_kai_name = kai
  2025. pkg_kai_description = DHT storage by Takeshi Inoue
  2026. pkg_kai_homepage = https://github.com/synrc/kai
  2027. pkg_kai_fetch = git
  2028. pkg_kai_repo = https://github.com/synrc/kai
  2029. pkg_kai_commit = master
  2030. PACKAGES += katja
  2031. pkg_katja_name = katja
  2032. pkg_katja_description = A simple Riemann client written in Erlang.
  2033. pkg_katja_homepage = https://github.com/nifoc/katja
  2034. pkg_katja_fetch = git
  2035. pkg_katja_repo = https://github.com/nifoc/katja
  2036. pkg_katja_commit = master
  2037. PACKAGES += kdht
  2038. pkg_kdht_name = kdht
  2039. pkg_kdht_description = kdht is an erlang DHT implementation
  2040. pkg_kdht_homepage = https://github.com/kevinlynx/kdht
  2041. pkg_kdht_fetch = git
  2042. pkg_kdht_repo = https://github.com/kevinlynx/kdht
  2043. pkg_kdht_commit = master
  2044. PACKAGES += key2value
  2045. pkg_key2value_name = key2value
  2046. pkg_key2value_description = Erlang 2-way map
  2047. pkg_key2value_homepage = https://github.com/okeuday/key2value
  2048. pkg_key2value_fetch = git
  2049. pkg_key2value_repo = https://github.com/okeuday/key2value
  2050. pkg_key2value_commit = master
  2051. PACKAGES += keys1value
  2052. pkg_keys1value_name = keys1value
  2053. pkg_keys1value_description = Erlang set associative map for key lists
  2054. pkg_keys1value_homepage = https://github.com/okeuday/keys1value
  2055. pkg_keys1value_fetch = git
  2056. pkg_keys1value_repo = https://github.com/okeuday/keys1value
  2057. pkg_keys1value_commit = master
  2058. PACKAGES += kinetic
  2059. pkg_kinetic_name = kinetic
  2060. pkg_kinetic_description = Erlang Kinesis Client
  2061. pkg_kinetic_homepage = https://github.com/AdRoll/kinetic
  2062. pkg_kinetic_fetch = git
  2063. pkg_kinetic_repo = https://github.com/AdRoll/kinetic
  2064. pkg_kinetic_commit = master
  2065. PACKAGES += kjell
  2066. pkg_kjell_name = kjell
  2067. pkg_kjell_description = Erlang Shell
  2068. pkg_kjell_homepage = https://github.com/karlll/kjell
  2069. pkg_kjell_fetch = git
  2070. pkg_kjell_repo = https://github.com/karlll/kjell
  2071. pkg_kjell_commit = master
  2072. PACKAGES += kraken
  2073. pkg_kraken_name = kraken
  2074. pkg_kraken_description = Distributed Pubsub Server for Realtime Apps
  2075. pkg_kraken_homepage = https://github.com/Asana/kraken
  2076. pkg_kraken_fetch = git
  2077. pkg_kraken_repo = https://github.com/Asana/kraken
  2078. pkg_kraken_commit = master
  2079. PACKAGES += kucumberl
  2080. pkg_kucumberl_name = kucumberl
  2081. pkg_kucumberl_description = A pure-erlang, open-source, implementation of Cucumber
  2082. pkg_kucumberl_homepage = https://github.com/openshine/kucumberl
  2083. pkg_kucumberl_fetch = git
  2084. pkg_kucumberl_repo = https://github.com/openshine/kucumberl
  2085. pkg_kucumberl_commit = master
  2086. PACKAGES += kvc
  2087. pkg_kvc_name = kvc
  2088. pkg_kvc_description = KVC - Key Value Coding for Erlang data structures
  2089. pkg_kvc_homepage = https://github.com/etrepum/kvc
  2090. pkg_kvc_fetch = git
  2091. pkg_kvc_repo = https://github.com/etrepum/kvc
  2092. pkg_kvc_commit = master
  2093. PACKAGES += kvlists
  2094. pkg_kvlists_name = kvlists
  2095. pkg_kvlists_description = Lists of key-value pairs (decoded JSON) in Erlang
  2096. pkg_kvlists_homepage = https://github.com/jcomellas/kvlists
  2097. pkg_kvlists_fetch = git
  2098. pkg_kvlists_repo = https://github.com/jcomellas/kvlists
  2099. pkg_kvlists_commit = master
  2100. PACKAGES += kvs
  2101. pkg_kvs_name = kvs
  2102. pkg_kvs_description = Container and Iterator
  2103. pkg_kvs_homepage = https://github.com/synrc/kvs
  2104. pkg_kvs_fetch = git
  2105. pkg_kvs_repo = https://github.com/synrc/kvs
  2106. pkg_kvs_commit = master
  2107. PACKAGES += lager
  2108. pkg_lager_name = lager
  2109. pkg_lager_description = A logging framework for Erlang/OTP.
  2110. pkg_lager_homepage = https://github.com/erlang-lager/lager
  2111. pkg_lager_fetch = git
  2112. pkg_lager_repo = https://github.com/erlang-lager/lager
  2113. pkg_lager_commit = master
  2114. PACKAGES += lager_amqp_backend
  2115. pkg_lager_amqp_backend_name = lager_amqp_backend
  2116. pkg_lager_amqp_backend_description = AMQP RabbitMQ Lager backend
  2117. pkg_lager_amqp_backend_homepage = https://github.com/jbrisbin/lager_amqp_backend
  2118. pkg_lager_amqp_backend_fetch = git
  2119. pkg_lager_amqp_backend_repo = https://github.com/jbrisbin/lager_amqp_backend
  2120. pkg_lager_amqp_backend_commit = master
  2121. PACKAGES += lager_syslog
  2122. pkg_lager_syslog_name = lager_syslog
  2123. pkg_lager_syslog_description = Syslog backend for lager
  2124. pkg_lager_syslog_homepage = https://github.com/erlang-lager/lager_syslog
  2125. pkg_lager_syslog_fetch = git
  2126. pkg_lager_syslog_repo = https://github.com/erlang-lager/lager_syslog
  2127. pkg_lager_syslog_commit = master
  2128. PACKAGES += lambdapad
  2129. pkg_lambdapad_name = lambdapad
  2130. pkg_lambdapad_description = Static site generator using Erlang. Yes, Erlang.
  2131. pkg_lambdapad_homepage = https://github.com/gar1t/lambdapad
  2132. pkg_lambdapad_fetch = git
  2133. pkg_lambdapad_repo = https://github.com/gar1t/lambdapad
  2134. pkg_lambdapad_commit = master
  2135. PACKAGES += lasp
  2136. pkg_lasp_name = lasp
  2137. pkg_lasp_description = A Language for Distributed, Eventually Consistent Computations
  2138. pkg_lasp_homepage = http://lasp-lang.org/
  2139. pkg_lasp_fetch = git
  2140. pkg_lasp_repo = https://github.com/lasp-lang/lasp
  2141. pkg_lasp_commit = master
  2142. PACKAGES += lasse
  2143. pkg_lasse_name = lasse
  2144. pkg_lasse_description = SSE handler for Cowboy
  2145. pkg_lasse_homepage = https://github.com/inaka/lasse
  2146. pkg_lasse_fetch = git
  2147. pkg_lasse_repo = https://github.com/inaka/lasse
  2148. pkg_lasse_commit = master
  2149. PACKAGES += ldap
  2150. pkg_ldap_name = ldap
  2151. pkg_ldap_description = LDAP server written in Erlang
  2152. pkg_ldap_homepage = https://github.com/spawnproc/ldap
  2153. pkg_ldap_fetch = git
  2154. pkg_ldap_repo = https://github.com/spawnproc/ldap
  2155. pkg_ldap_commit = master
  2156. PACKAGES += lethink
  2157. pkg_lethink_name = lethink
  2158. pkg_lethink_description = erlang driver for rethinkdb
  2159. pkg_lethink_homepage = https://github.com/taybin/lethink
  2160. pkg_lethink_fetch = git
  2161. pkg_lethink_repo = https://github.com/taybin/lethink
  2162. pkg_lethink_commit = master
  2163. PACKAGES += lfe
  2164. pkg_lfe_name = lfe
  2165. pkg_lfe_description = Lisp Flavoured Erlang (LFE)
  2166. pkg_lfe_homepage = https://github.com/rvirding/lfe
  2167. pkg_lfe_fetch = git
  2168. pkg_lfe_repo = https://github.com/rvirding/lfe
  2169. pkg_lfe_commit = master
  2170. PACKAGES += ling
  2171. pkg_ling_name = ling
  2172. pkg_ling_description = Erlang on Xen
  2173. pkg_ling_homepage = https://github.com/cloudozer/ling
  2174. pkg_ling_fetch = git
  2175. pkg_ling_repo = https://github.com/cloudozer/ling
  2176. pkg_ling_commit = master
  2177. PACKAGES += live
  2178. pkg_live_name = live
  2179. pkg_live_description = Automated module and configuration reloader.
  2180. pkg_live_homepage = http://ninenines.eu
  2181. pkg_live_fetch = git
  2182. pkg_live_repo = https://github.com/ninenines/live
  2183. pkg_live_commit = master
  2184. PACKAGES += lmq
  2185. pkg_lmq_name = lmq
  2186. pkg_lmq_description = Lightweight Message Queue
  2187. pkg_lmq_homepage = https://github.com/iij/lmq
  2188. pkg_lmq_fetch = git
  2189. pkg_lmq_repo = https://github.com/iij/lmq
  2190. pkg_lmq_commit = master
  2191. PACKAGES += locker
  2192. pkg_locker_name = locker
  2193. pkg_locker_description = Atomic distributed 'check and set' for short-lived keys
  2194. pkg_locker_homepage = https://github.com/wooga/locker
  2195. pkg_locker_fetch = git
  2196. pkg_locker_repo = https://github.com/wooga/locker
  2197. pkg_locker_commit = master
  2198. PACKAGES += locks
  2199. pkg_locks_name = locks
  2200. pkg_locks_description = A scalable, deadlock-resolving resource locker
  2201. pkg_locks_homepage = https://github.com/uwiger/locks
  2202. pkg_locks_fetch = git
  2203. pkg_locks_repo = https://github.com/uwiger/locks
  2204. pkg_locks_commit = master
  2205. PACKAGES += log4erl
  2206. pkg_log4erl_name = log4erl
  2207. pkg_log4erl_description = A logger for erlang in the spirit of Log4J.
  2208. pkg_log4erl_homepage = https://github.com/ahmednawras/log4erl
  2209. pkg_log4erl_fetch = git
  2210. pkg_log4erl_repo = https://github.com/ahmednawras/log4erl
  2211. pkg_log4erl_commit = master
  2212. PACKAGES += lol
  2213. pkg_lol_name = lol
  2214. pkg_lol_description = Lisp on erLang, and programming is fun again
  2215. pkg_lol_homepage = https://github.com/b0oh/lol
  2216. pkg_lol_fetch = git
  2217. pkg_lol_repo = https://github.com/b0oh/lol
  2218. pkg_lol_commit = master
  2219. PACKAGES += lucid
  2220. pkg_lucid_name = lucid
  2221. pkg_lucid_description = HTTP/2 server written in Erlang
  2222. pkg_lucid_homepage = https://github.com/tatsuhiro-t/lucid
  2223. pkg_lucid_fetch = git
  2224. pkg_lucid_repo = https://github.com/tatsuhiro-t/lucid
  2225. pkg_lucid_commit = master
  2226. PACKAGES += luerl
  2227. pkg_luerl_name = luerl
  2228. pkg_luerl_description = Lua in Erlang
  2229. pkg_luerl_homepage = https://github.com/rvirding/luerl
  2230. pkg_luerl_fetch = git
  2231. pkg_luerl_repo = https://github.com/rvirding/luerl
  2232. pkg_luerl_commit = develop
  2233. PACKAGES += luwak
  2234. pkg_luwak_name = luwak
  2235. pkg_luwak_description = Large-object storage interface for Riak
  2236. pkg_luwak_homepage = https://github.com/basho/luwak
  2237. pkg_luwak_fetch = git
  2238. pkg_luwak_repo = https://github.com/basho/luwak
  2239. pkg_luwak_commit = master
  2240. PACKAGES += lux
  2241. pkg_lux_name = lux
  2242. pkg_lux_description = Lux (LUcid eXpect scripting) simplifies test automation and provides an Expect-style execution of commands
  2243. pkg_lux_homepage = https://github.com/hawk/lux
  2244. pkg_lux_fetch = git
  2245. pkg_lux_repo = https://github.com/hawk/lux
  2246. pkg_lux_commit = master
  2247. PACKAGES += machi
  2248. pkg_machi_name = machi
  2249. pkg_machi_description = Machi file store
  2250. pkg_machi_homepage = https://github.com/basho/machi
  2251. pkg_machi_fetch = git
  2252. pkg_machi_repo = https://github.com/basho/machi
  2253. pkg_machi_commit = master
  2254. PACKAGES += mad
  2255. pkg_mad_name = mad
  2256. pkg_mad_description = Small and Fast Rebar Replacement
  2257. pkg_mad_homepage = https://github.com/synrc/mad
  2258. pkg_mad_fetch = git
  2259. pkg_mad_repo = https://github.com/synrc/mad
  2260. pkg_mad_commit = master
  2261. PACKAGES += marina
  2262. pkg_marina_name = marina
  2263. pkg_marina_description = Non-blocking Erlang Cassandra CQL3 client
  2264. pkg_marina_homepage = https://github.com/lpgauth/marina
  2265. pkg_marina_fetch = git
  2266. pkg_marina_repo = https://github.com/lpgauth/marina
  2267. pkg_marina_commit = master
  2268. PACKAGES += mavg
  2269. pkg_mavg_name = mavg
  2270. pkg_mavg_description = Erlang :: Exponential moving average library
  2271. pkg_mavg_homepage = https://github.com/EchoTeam/mavg
  2272. pkg_mavg_fetch = git
  2273. pkg_mavg_repo = https://github.com/EchoTeam/mavg
  2274. pkg_mavg_commit = master
  2275. PACKAGES += mc_erl
  2276. pkg_mc_erl_name = mc_erl
  2277. pkg_mc_erl_description = mc-erl is a server for Minecraft 1.4.7 written in Erlang.
  2278. pkg_mc_erl_homepage = https://github.com/clonejo/mc-erl
  2279. pkg_mc_erl_fetch = git
  2280. pkg_mc_erl_repo = https://github.com/clonejo/mc-erl
  2281. pkg_mc_erl_commit = master
  2282. PACKAGES += mcd
  2283. pkg_mcd_name = mcd
  2284. pkg_mcd_description = Fast memcached protocol client in pure Erlang
  2285. pkg_mcd_homepage = https://github.com/EchoTeam/mcd
  2286. pkg_mcd_fetch = git
  2287. pkg_mcd_repo = https://github.com/EchoTeam/mcd
  2288. pkg_mcd_commit = master
  2289. PACKAGES += mcerlang
  2290. pkg_mcerlang_name = mcerlang
  2291. pkg_mcerlang_description = The McErlang model checker for Erlang
  2292. pkg_mcerlang_homepage = https://github.com/fredlund/McErlang
  2293. pkg_mcerlang_fetch = git
  2294. pkg_mcerlang_repo = https://github.com/fredlund/McErlang
  2295. pkg_mcerlang_commit = master
  2296. PACKAGES += meck
  2297. pkg_meck_name = meck
  2298. pkg_meck_description = A mocking library for Erlang
  2299. pkg_meck_homepage = https://github.com/eproxus/meck
  2300. pkg_meck_fetch = git
  2301. pkg_meck_repo = https://github.com/eproxus/meck
  2302. pkg_meck_commit = master
  2303. PACKAGES += mekao
  2304. pkg_mekao_name = mekao
  2305. pkg_mekao_description = SQL constructor
  2306. pkg_mekao_homepage = https://github.com/ddosia/mekao
  2307. pkg_mekao_fetch = git
  2308. pkg_mekao_repo = https://github.com/ddosia/mekao
  2309. pkg_mekao_commit = master
  2310. PACKAGES += memo
  2311. pkg_memo_name = memo
  2312. pkg_memo_description = Erlang memoization server
  2313. pkg_memo_homepage = https://github.com/tuncer/memo
  2314. pkg_memo_fetch = git
  2315. pkg_memo_repo = https://github.com/tuncer/memo
  2316. pkg_memo_commit = master
  2317. PACKAGES += merge_index
  2318. pkg_merge_index_name = merge_index
  2319. pkg_merge_index_description = MergeIndex is an Erlang library for storing ordered sets on disk. It is very similar to an SSTable (in Google's Bigtable) or an HFile (in Hadoop).
  2320. pkg_merge_index_homepage = https://github.com/basho/merge_index
  2321. pkg_merge_index_fetch = git
  2322. pkg_merge_index_repo = https://github.com/basho/merge_index
  2323. pkg_merge_index_commit = master
  2324. PACKAGES += merl
  2325. pkg_merl_name = merl
  2326. pkg_merl_description = Metaprogramming in Erlang
  2327. pkg_merl_homepage = https://github.com/richcarl/merl
  2328. pkg_merl_fetch = git
  2329. pkg_merl_repo = https://github.com/richcarl/merl
  2330. pkg_merl_commit = master
  2331. PACKAGES += mimerl
  2332. pkg_mimerl_name = mimerl
  2333. pkg_mimerl_description = library to handle mimetypes
  2334. pkg_mimerl_homepage = https://github.com/benoitc/mimerl
  2335. pkg_mimerl_fetch = git
  2336. pkg_mimerl_repo = https://github.com/benoitc/mimerl
  2337. pkg_mimerl_commit = master
  2338. PACKAGES += mimetypes
  2339. pkg_mimetypes_name = mimetypes
  2340. pkg_mimetypes_description = Erlang MIME types library
  2341. pkg_mimetypes_homepage = https://github.com/spawngrid/mimetypes
  2342. pkg_mimetypes_fetch = git
  2343. pkg_mimetypes_repo = https://github.com/spawngrid/mimetypes
  2344. pkg_mimetypes_commit = master
  2345. PACKAGES += mixer
  2346. pkg_mixer_name = mixer
  2347. pkg_mixer_description = Mix in functions from other modules
  2348. pkg_mixer_homepage = https://github.com/chef/mixer
  2349. pkg_mixer_fetch = git
  2350. pkg_mixer_repo = https://github.com/chef/mixer
  2351. pkg_mixer_commit = master
  2352. PACKAGES += mochiweb
  2353. pkg_mochiweb_name = mochiweb
  2354. pkg_mochiweb_description = MochiWeb is an Erlang library for building lightweight HTTP servers.
  2355. pkg_mochiweb_homepage = https://github.com/mochi/mochiweb
  2356. pkg_mochiweb_fetch = git
  2357. pkg_mochiweb_repo = https://github.com/mochi/mochiweb
  2358. pkg_mochiweb_commit = main
  2359. PACKAGES += mochiweb_xpath
  2360. pkg_mochiweb_xpath_name = mochiweb_xpath
  2361. pkg_mochiweb_xpath_description = XPath support for mochiweb's html parser
  2362. pkg_mochiweb_xpath_homepage = https://github.com/retnuh/mochiweb_xpath
  2363. pkg_mochiweb_xpath_fetch = git
  2364. pkg_mochiweb_xpath_repo = https://github.com/retnuh/mochiweb_xpath
  2365. pkg_mochiweb_xpath_commit = master
  2366. PACKAGES += mockgyver
  2367. pkg_mockgyver_name = mockgyver
  2368. pkg_mockgyver_description = A mocking library for Erlang
  2369. pkg_mockgyver_homepage = https://github.com/klajo/mockgyver
  2370. pkg_mockgyver_fetch = git
  2371. pkg_mockgyver_repo = https://github.com/klajo/mockgyver
  2372. pkg_mockgyver_commit = master
  2373. PACKAGES += modlib
  2374. pkg_modlib_name = modlib
  2375. pkg_modlib_description = Web framework based on Erlang's inets httpd
  2376. pkg_modlib_homepage = https://github.com/gar1t/modlib
  2377. pkg_modlib_fetch = git
  2378. pkg_modlib_repo = https://github.com/gar1t/modlib
  2379. pkg_modlib_commit = master
  2380. PACKAGES += mongodb
  2381. pkg_mongodb_name = mongodb
  2382. pkg_mongodb_description = MongoDB driver for Erlang
  2383. pkg_mongodb_homepage = https://github.com/comtihon/mongodb-erlang
  2384. pkg_mongodb_fetch = git
  2385. pkg_mongodb_repo = https://github.com/comtihon/mongodb-erlang
  2386. pkg_mongodb_commit = master
  2387. PACKAGES += mongooseim
  2388. pkg_mongooseim_name = mongooseim
  2389. pkg_mongooseim_description = Jabber / XMPP server with focus on performance and scalability, by Erlang Solutions
  2390. pkg_mongooseim_homepage = https://www.erlang-solutions.com/products/mongooseim-massively-scalable-ejabberd-platform
  2391. pkg_mongooseim_fetch = git
  2392. pkg_mongooseim_repo = https://github.com/esl/MongooseIM
  2393. pkg_mongooseim_commit = master
  2394. PACKAGES += moyo
  2395. pkg_moyo_name = moyo
  2396. pkg_moyo_description = Erlang utility functions library
  2397. pkg_moyo_homepage = https://github.com/dwango/moyo
  2398. pkg_moyo_fetch = git
  2399. pkg_moyo_repo = https://github.com/dwango/moyo
  2400. pkg_moyo_commit = master
  2401. PACKAGES += msgpack
  2402. pkg_msgpack_name = msgpack
  2403. pkg_msgpack_description = MessagePack (de)serializer implementation for Erlang
  2404. pkg_msgpack_homepage = https://github.com/msgpack/msgpack-erlang
  2405. pkg_msgpack_fetch = git
  2406. pkg_msgpack_repo = https://github.com/msgpack/msgpack-erlang
  2407. pkg_msgpack_commit = master
  2408. PACKAGES += mu2
  2409. pkg_mu2_name = mu2
  2410. pkg_mu2_description = Erlang mutation testing tool
  2411. pkg_mu2_homepage = https://github.com/ramsay-t/mu2
  2412. pkg_mu2_fetch = git
  2413. pkg_mu2_repo = https://github.com/ramsay-t/mu2
  2414. pkg_mu2_commit = master
  2415. PACKAGES += mustache
  2416. pkg_mustache_name = mustache
  2417. pkg_mustache_description = Mustache template engine for Erlang.
  2418. pkg_mustache_homepage = https://github.com/mojombo/mustache.erl
  2419. pkg_mustache_fetch = git
  2420. pkg_mustache_repo = https://github.com/mojombo/mustache.erl
  2421. pkg_mustache_commit = master
  2422. PACKAGES += myproto
  2423. pkg_myproto_name = myproto
  2424. pkg_myproto_description = MySQL Server Protocol in Erlang
  2425. pkg_myproto_homepage = https://github.com/altenwald/myproto
  2426. pkg_myproto_fetch = git
  2427. pkg_myproto_repo = https://github.com/altenwald/myproto
  2428. pkg_myproto_commit = master
  2429. PACKAGES += mysql
  2430. pkg_mysql_name = mysql
  2431. pkg_mysql_description = MySQL client library for Erlang/OTP
  2432. pkg_mysql_homepage = https://github.com/mysql-otp/mysql-otp
  2433. pkg_mysql_fetch = git
  2434. pkg_mysql_repo = https://github.com/mysql-otp/mysql-otp
  2435. pkg_mysql_commit = 1.7.0
  2436. PACKAGES += n2o
  2437. pkg_n2o_name = n2o
  2438. pkg_n2o_description = WebSocket Application Server
  2439. pkg_n2o_homepage = https://github.com/5HT/n2o
  2440. pkg_n2o_fetch = git
  2441. pkg_n2o_repo = https://github.com/5HT/n2o
  2442. pkg_n2o_commit = master
  2443. PACKAGES += nat_upnp
  2444. pkg_nat_upnp_name = nat_upnp
  2445. pkg_nat_upnp_description = Erlang library to map your internal port to an external using UNP IGD
  2446. pkg_nat_upnp_homepage = https://github.com/benoitc/nat_upnp
  2447. pkg_nat_upnp_fetch = git
  2448. pkg_nat_upnp_repo = https://github.com/benoitc/nat_upnp
  2449. pkg_nat_upnp_commit = master
  2450. PACKAGES += neo4j
  2451. pkg_neo4j_name = neo4j
  2452. pkg_neo4j_description = Erlang client library for Neo4J.
  2453. pkg_neo4j_homepage = https://github.com/dmitriid/neo4j-erlang
  2454. pkg_neo4j_fetch = git
  2455. pkg_neo4j_repo = https://github.com/dmitriid/neo4j-erlang
  2456. pkg_neo4j_commit = master
  2457. PACKAGES += neotoma
  2458. pkg_neotoma_name = neotoma
  2459. pkg_neotoma_description = Erlang library and packrat parser-generator for parsing expression grammars.
  2460. pkg_neotoma_homepage = https://github.com/seancribbs/neotoma
  2461. pkg_neotoma_fetch = git
  2462. pkg_neotoma_repo = https://github.com/seancribbs/neotoma
  2463. pkg_neotoma_commit = master
  2464. PACKAGES += newrelic
  2465. pkg_newrelic_name = newrelic
  2466. pkg_newrelic_description = Erlang library for sending metrics to New Relic
  2467. pkg_newrelic_homepage = https://github.com/wooga/newrelic-erlang
  2468. pkg_newrelic_fetch = git
  2469. pkg_newrelic_repo = https://github.com/wooga/newrelic-erlang
  2470. pkg_newrelic_commit = master
  2471. PACKAGES += nifty
  2472. pkg_nifty_name = nifty
  2473. pkg_nifty_description = Erlang NIF wrapper generator
  2474. pkg_nifty_homepage = https://github.com/parapluu/nifty
  2475. pkg_nifty_fetch = git
  2476. pkg_nifty_repo = https://github.com/parapluu/nifty
  2477. pkg_nifty_commit = master
  2478. PACKAGES += nitrogen_core
  2479. pkg_nitrogen_core_name = nitrogen_core
  2480. pkg_nitrogen_core_description = The core Nitrogen library.
  2481. pkg_nitrogen_core_homepage = http://nitrogenproject.com/
  2482. pkg_nitrogen_core_fetch = git
  2483. pkg_nitrogen_core_repo = https://github.com/nitrogen/nitrogen_core
  2484. pkg_nitrogen_core_commit = master
  2485. PACKAGES += nkbase
  2486. pkg_nkbase_name = nkbase
  2487. pkg_nkbase_description = NkBASE distributed database
  2488. pkg_nkbase_homepage = https://github.com/Nekso/nkbase
  2489. pkg_nkbase_fetch = git
  2490. pkg_nkbase_repo = https://github.com/Nekso/nkbase
  2491. pkg_nkbase_commit = develop
  2492. PACKAGES += nkdocker
  2493. pkg_nkdocker_name = nkdocker
  2494. pkg_nkdocker_description = Erlang Docker client
  2495. pkg_nkdocker_homepage = https://github.com/Nekso/nkdocker
  2496. pkg_nkdocker_fetch = git
  2497. pkg_nkdocker_repo = https://github.com/Nekso/nkdocker
  2498. pkg_nkdocker_commit = master
  2499. PACKAGES += nkpacket
  2500. pkg_nkpacket_name = nkpacket
  2501. pkg_nkpacket_description = Generic Erlang transport layer
  2502. pkg_nkpacket_homepage = https://github.com/Nekso/nkpacket
  2503. pkg_nkpacket_fetch = git
  2504. pkg_nkpacket_repo = https://github.com/Nekso/nkpacket
  2505. pkg_nkpacket_commit = master
  2506. PACKAGES += nksip
  2507. pkg_nksip_name = nksip
  2508. pkg_nksip_description = Erlang SIP application server
  2509. pkg_nksip_homepage = https://github.com/kalta/nksip
  2510. pkg_nksip_fetch = git
  2511. pkg_nksip_repo = https://github.com/kalta/nksip
  2512. pkg_nksip_commit = master
  2513. PACKAGES += nodefinder
  2514. pkg_nodefinder_name = nodefinder
  2515. pkg_nodefinder_description = automatic node discovery via UDP multicast
  2516. pkg_nodefinder_homepage = https://github.com/erlanger/nodefinder
  2517. pkg_nodefinder_fetch = git
  2518. pkg_nodefinder_repo = https://github.com/okeuday/nodefinder
  2519. pkg_nodefinder_commit = master
  2520. PACKAGES += nprocreg
  2521. pkg_nprocreg_name = nprocreg
  2522. pkg_nprocreg_description = Minimal Distributed Erlang Process Registry
  2523. pkg_nprocreg_homepage = http://nitrogenproject.com/
  2524. pkg_nprocreg_fetch = git
  2525. pkg_nprocreg_repo = https://github.com/nitrogen/nprocreg
  2526. pkg_nprocreg_commit = master
  2527. PACKAGES += oauth
  2528. pkg_oauth_name = oauth
  2529. pkg_oauth_description = An Erlang OAuth 1.0 implementation
  2530. pkg_oauth_homepage = https://github.com/tim/erlang-oauth
  2531. pkg_oauth_fetch = git
  2532. pkg_oauth_repo = https://github.com/tim/erlang-oauth
  2533. pkg_oauth_commit = master
  2534. PACKAGES += oauth2
  2535. pkg_oauth2_name = oauth2
  2536. pkg_oauth2_description = Erlang Oauth2 implementation
  2537. pkg_oauth2_homepage = https://github.com/kivra/oauth2
  2538. pkg_oauth2_fetch = git
  2539. pkg_oauth2_repo = https://github.com/kivra/oauth2
  2540. pkg_oauth2_commit = master
  2541. PACKAGES += observer_cli
  2542. pkg_observer_cli_name = observer_cli
  2543. pkg_observer_cli_description = Visualize Erlang/Elixir Nodes On The Command Line
  2544. pkg_observer_cli_homepage = http://zhongwencool.github.io/observer_cli
  2545. pkg_observer_cli_fetch = git
  2546. pkg_observer_cli_repo = https://github.com/zhongwencool/observer_cli
  2547. pkg_observer_cli_commit = master
  2548. PACKAGES += octopus
  2549. pkg_octopus_name = octopus
  2550. pkg_octopus_description = Small and flexible pool manager written in Erlang
  2551. pkg_octopus_homepage = https://github.com/erlangbureau/octopus
  2552. pkg_octopus_fetch = git
  2553. pkg_octopus_repo = https://github.com/erlangbureau/octopus
  2554. pkg_octopus_commit = master
  2555. PACKAGES += of_protocol
  2556. pkg_of_protocol_name = of_protocol
  2557. pkg_of_protocol_description = OpenFlow Protocol Library for Erlang
  2558. pkg_of_protocol_homepage = https://github.com/FlowForwarding/of_protocol
  2559. pkg_of_protocol_fetch = git
  2560. pkg_of_protocol_repo = https://github.com/FlowForwarding/of_protocol
  2561. pkg_of_protocol_commit = master
  2562. PACKAGES += opencouch
  2563. pkg_opencouch_name = couch
  2564. pkg_opencouch_description = A embeddable document oriented database compatible with Apache CouchDB
  2565. pkg_opencouch_homepage = https://github.com/benoitc/opencouch
  2566. pkg_opencouch_fetch = git
  2567. pkg_opencouch_repo = https://github.com/benoitc/opencouch
  2568. pkg_opencouch_commit = master
  2569. PACKAGES += openflow
  2570. pkg_openflow_name = openflow
  2571. pkg_openflow_description = An OpenFlow controller written in pure erlang
  2572. pkg_openflow_homepage = https://github.com/renatoaguiar/erlang-openflow
  2573. pkg_openflow_fetch = git
  2574. pkg_openflow_repo = https://github.com/renatoaguiar/erlang-openflow
  2575. pkg_openflow_commit = master
  2576. PACKAGES += openid
  2577. pkg_openid_name = openid
  2578. pkg_openid_description = Erlang OpenID
  2579. pkg_openid_homepage = https://github.com/brendonh/erl_openid
  2580. pkg_openid_fetch = git
  2581. pkg_openid_repo = https://github.com/brendonh/erl_openid
  2582. pkg_openid_commit = master
  2583. PACKAGES += openpoker
  2584. pkg_openpoker_name = openpoker
  2585. pkg_openpoker_description = Genesis Texas hold'em Game Server
  2586. pkg_openpoker_homepage = https://github.com/hpyhacking/openpoker
  2587. pkg_openpoker_fetch = git
  2588. pkg_openpoker_repo = https://github.com/hpyhacking/openpoker
  2589. pkg_openpoker_commit = master
  2590. PACKAGES += otpbp
  2591. pkg_otpbp_name = otpbp
  2592. pkg_otpbp_description = Parse transformer for use new OTP functions in old Erlang/OTP releases (R15, R16, 17, 18, 19)
  2593. pkg_otpbp_homepage = https://github.com/Ledest/otpbp
  2594. pkg_otpbp_fetch = git
  2595. pkg_otpbp_repo = https://github.com/Ledest/otpbp
  2596. pkg_otpbp_commit = master
  2597. PACKAGES += pal
  2598. pkg_pal_name = pal
  2599. pkg_pal_description = Pragmatic Authentication Library
  2600. pkg_pal_homepage = https://github.com/manifest/pal
  2601. pkg_pal_fetch = git
  2602. pkg_pal_repo = https://github.com/manifest/pal
  2603. pkg_pal_commit = master
  2604. PACKAGES += parse_trans
  2605. pkg_parse_trans_name = parse_trans
  2606. pkg_parse_trans_description = Parse transform utilities for Erlang
  2607. pkg_parse_trans_homepage = https://github.com/uwiger/parse_trans
  2608. pkg_parse_trans_fetch = git
  2609. pkg_parse_trans_repo = https://github.com/uwiger/parse_trans
  2610. pkg_parse_trans_commit = master
  2611. PACKAGES += parsexml
  2612. pkg_parsexml_name = parsexml
  2613. pkg_parsexml_description = Simple DOM XML parser with convenient and very simple API
  2614. pkg_parsexml_homepage = https://github.com/maxlapshin/parsexml
  2615. pkg_parsexml_fetch = git
  2616. pkg_parsexml_repo = https://github.com/maxlapshin/parsexml
  2617. pkg_parsexml_commit = master
  2618. PACKAGES += partisan
  2619. pkg_partisan_name = partisan
  2620. pkg_partisan_description = High-performance, high-scalability distributed computing with Erlang and Elixir.
  2621. pkg_partisan_homepage = http://partisan.cloud
  2622. pkg_partisan_fetch = git
  2623. pkg_partisan_repo = https://github.com/lasp-lang/partisan
  2624. pkg_partisan_commit = master
  2625. PACKAGES += pegjs
  2626. pkg_pegjs_name = pegjs
  2627. pkg_pegjs_description = An implementation of PEG.js grammar for Erlang.
  2628. pkg_pegjs_homepage = https://github.com/dmitriid/pegjs
  2629. pkg_pegjs_fetch = git
  2630. pkg_pegjs_repo = https://github.com/dmitriid/pegjs
  2631. pkg_pegjs_commit = master
  2632. PACKAGES += percept2
  2633. pkg_percept2_name = percept2
  2634. pkg_percept2_description = Concurrent profiling tool for Erlang
  2635. pkg_percept2_homepage = https://github.com/huiqing/percept2
  2636. pkg_percept2_fetch = git
  2637. pkg_percept2_repo = https://github.com/huiqing/percept2
  2638. pkg_percept2_commit = master
  2639. PACKAGES += pgo
  2640. pkg_pgo_name = pgo
  2641. pkg_pgo_description = Erlang Postgres client and connection pool
  2642. pkg_pgo_homepage = https://github.com/erleans/pgo.git
  2643. pkg_pgo_fetch = git
  2644. pkg_pgo_repo = https://github.com/erleans/pgo.git
  2645. pkg_pgo_commit = master
  2646. PACKAGES += pgsql
  2647. pkg_pgsql_name = pgsql
  2648. pkg_pgsql_description = Erlang PostgreSQL driver
  2649. pkg_pgsql_homepage = https://github.com/semiocast/pgsql
  2650. pkg_pgsql_fetch = git
  2651. pkg_pgsql_repo = https://github.com/semiocast/pgsql
  2652. pkg_pgsql_commit = master
  2653. PACKAGES += pkgx
  2654. pkg_pkgx_name = pkgx
  2655. pkg_pkgx_description = Build .deb packages from Erlang releases
  2656. pkg_pkgx_homepage = https://github.com/arjan/pkgx
  2657. pkg_pkgx_fetch = git
  2658. pkg_pkgx_repo = https://github.com/arjan/pkgx
  2659. pkg_pkgx_commit = master
  2660. PACKAGES += pkt
  2661. pkg_pkt_name = pkt
  2662. pkg_pkt_description = Erlang network protocol library
  2663. pkg_pkt_homepage = https://github.com/msantos/pkt
  2664. pkg_pkt_fetch = git
  2665. pkg_pkt_repo = https://github.com/msantos/pkt
  2666. pkg_pkt_commit = master
  2667. PACKAGES += plain_fsm
  2668. pkg_plain_fsm_name = plain_fsm
  2669. pkg_plain_fsm_description = A behaviour/support library for writing plain Erlang FSMs.
  2670. pkg_plain_fsm_homepage = https://github.com/uwiger/plain_fsm
  2671. pkg_plain_fsm_fetch = git
  2672. pkg_plain_fsm_repo = https://github.com/uwiger/plain_fsm
  2673. pkg_plain_fsm_commit = master
  2674. PACKAGES += plumtree
  2675. pkg_plumtree_name = plumtree
  2676. pkg_plumtree_description = Epidemic Broadcast Trees
  2677. pkg_plumtree_homepage = https://github.com/helium/plumtree
  2678. pkg_plumtree_fetch = git
  2679. pkg_plumtree_repo = https://github.com/helium/plumtree
  2680. pkg_plumtree_commit = master
  2681. PACKAGES += pmod_transform
  2682. pkg_pmod_transform_name = pmod_transform
  2683. pkg_pmod_transform_description = Parse transform for parameterized modules
  2684. pkg_pmod_transform_homepage = https://github.com/erlang/pmod_transform
  2685. pkg_pmod_transform_fetch = git
  2686. pkg_pmod_transform_repo = https://github.com/erlang/pmod_transform
  2687. pkg_pmod_transform_commit = master
  2688. PACKAGES += pobox
  2689. pkg_pobox_name = pobox
  2690. pkg_pobox_description = External buffer processes to protect against mailbox overflow in Erlang
  2691. pkg_pobox_homepage = https://github.com/ferd/pobox
  2692. pkg_pobox_fetch = git
  2693. pkg_pobox_repo = https://github.com/ferd/pobox
  2694. pkg_pobox_commit = master
  2695. PACKAGES += ponos
  2696. pkg_ponos_name = ponos
  2697. pkg_ponos_description = ponos is a simple yet powerful load generator written in erlang
  2698. pkg_ponos_homepage = https://github.com/klarna/ponos
  2699. pkg_ponos_fetch = git
  2700. pkg_ponos_repo = https://github.com/klarna/ponos
  2701. pkg_ponos_commit = master
  2702. PACKAGES += poolboy
  2703. pkg_poolboy_name = poolboy
  2704. pkg_poolboy_description = A hunky Erlang worker pool factory
  2705. pkg_poolboy_homepage = https://github.com/devinus/poolboy
  2706. pkg_poolboy_fetch = git
  2707. pkg_poolboy_repo = https://github.com/devinus/poolboy
  2708. pkg_poolboy_commit = master
  2709. PACKAGES += pooler
  2710. pkg_pooler_name = pooler
  2711. pkg_pooler_description = An OTP Process Pool Application
  2712. pkg_pooler_homepage = https://github.com/seth/pooler
  2713. pkg_pooler_fetch = git
  2714. pkg_pooler_repo = https://github.com/seth/pooler
  2715. pkg_pooler_commit = master
  2716. PACKAGES += pqueue
  2717. pkg_pqueue_name = pqueue
  2718. pkg_pqueue_description = Erlang Priority Queues
  2719. pkg_pqueue_homepage = https://github.com/okeuday/pqueue
  2720. pkg_pqueue_fetch = git
  2721. pkg_pqueue_repo = https://github.com/okeuday/pqueue
  2722. pkg_pqueue_commit = master
  2723. PACKAGES += procket
  2724. pkg_procket_name = procket
  2725. pkg_procket_description = Erlang interface to low level socket operations
  2726. pkg_procket_homepage = http://blog.listincomprehension.com/search/label/procket
  2727. pkg_procket_fetch = git
  2728. pkg_procket_repo = https://github.com/msantos/procket
  2729. pkg_procket_commit = master
  2730. PACKAGES += prometheus
  2731. pkg_prometheus_name = prometheus
  2732. pkg_prometheus_description = Prometheus.io client in Erlang
  2733. pkg_prometheus_homepage = https://github.com/deadtrickster/prometheus.erl
  2734. pkg_prometheus_fetch = git
  2735. pkg_prometheus_repo = https://github.com/deadtrickster/prometheus.erl
  2736. pkg_prometheus_commit = master
  2737. PACKAGES += prop
  2738. pkg_prop_name = prop
  2739. pkg_prop_description = An Erlang code scaffolding and generator system.
  2740. pkg_prop_homepage = https://github.com/nuex/prop
  2741. pkg_prop_fetch = git
  2742. pkg_prop_repo = https://github.com/nuex/prop
  2743. pkg_prop_commit = master
  2744. PACKAGES += proper
  2745. pkg_proper_name = proper
  2746. pkg_proper_description = PropEr: a QuickCheck-inspired property-based testing tool for Erlang.
  2747. pkg_proper_homepage = http://proper.softlab.ntua.gr
  2748. pkg_proper_fetch = git
  2749. pkg_proper_repo = https://github.com/manopapad/proper
  2750. pkg_proper_commit = master
  2751. PACKAGES += props
  2752. pkg_props_name = props
  2753. pkg_props_description = Property structure library
  2754. pkg_props_homepage = https://github.com/greyarea/props
  2755. pkg_props_fetch = git
  2756. pkg_props_repo = https://github.com/greyarea/props
  2757. pkg_props_commit = master
  2758. PACKAGES += protobuffs
  2759. pkg_protobuffs_name = protobuffs
  2760. pkg_protobuffs_description = An implementation of Google's Protocol Buffers for Erlang, based on ngerakines/erlang_protobuffs.
  2761. pkg_protobuffs_homepage = https://github.com/basho/erlang_protobuffs
  2762. pkg_protobuffs_fetch = git
  2763. pkg_protobuffs_repo = https://github.com/basho/erlang_protobuffs
  2764. pkg_protobuffs_commit = master
  2765. PACKAGES += psycho
  2766. pkg_psycho_name = psycho
  2767. pkg_psycho_description = HTTP server that provides a WSGI-like interface for applications and middleware.
  2768. pkg_psycho_homepage = https://github.com/gar1t/psycho
  2769. pkg_psycho_fetch = git
  2770. pkg_psycho_repo = https://github.com/gar1t/psycho
  2771. pkg_psycho_commit = master
  2772. PACKAGES += purity
  2773. pkg_purity_name = purity
  2774. pkg_purity_description = A side-effect analyzer for Erlang
  2775. pkg_purity_homepage = https://github.com/mpitid/purity
  2776. pkg_purity_fetch = git
  2777. pkg_purity_repo = https://github.com/mpitid/purity
  2778. pkg_purity_commit = master
  2779. PACKAGES += push_service
  2780. pkg_push_service_name = push_service
  2781. pkg_push_service_description = Push service
  2782. pkg_push_service_homepage = https://github.com/hairyhum/push_service
  2783. pkg_push_service_fetch = git
  2784. pkg_push_service_repo = https://github.com/hairyhum/push_service
  2785. pkg_push_service_commit = master
  2786. PACKAGES += qdate
  2787. pkg_qdate_name = qdate
  2788. pkg_qdate_description = Date, time, and timezone parsing, formatting, and conversion for Erlang.
  2789. pkg_qdate_homepage = https://github.com/choptastic/qdate
  2790. pkg_qdate_fetch = git
  2791. pkg_qdate_repo = https://github.com/choptastic/qdate
  2792. pkg_qdate_commit = master
  2793. PACKAGES += qrcode
  2794. pkg_qrcode_name = qrcode
  2795. pkg_qrcode_description = QR Code encoder in Erlang
  2796. pkg_qrcode_homepage = https://github.com/komone/qrcode
  2797. pkg_qrcode_fetch = git
  2798. pkg_qrcode_repo = https://github.com/komone/qrcode
  2799. pkg_qrcode_commit = master
  2800. PACKAGES += quest
  2801. pkg_quest_name = quest
  2802. pkg_quest_description = Learn Erlang through this set of challenges. An interactive system for getting to know Erlang.
  2803. pkg_quest_homepage = https://github.com/eriksoe/ErlangQuest
  2804. pkg_quest_fetch = git
  2805. pkg_quest_repo = https://github.com/eriksoe/ErlangQuest
  2806. pkg_quest_commit = master
  2807. PACKAGES += quickrand
  2808. pkg_quickrand_name = quickrand
  2809. pkg_quickrand_description = Quick Erlang Random Number Generation
  2810. pkg_quickrand_homepage = https://github.com/okeuday/quickrand
  2811. pkg_quickrand_fetch = git
  2812. pkg_quickrand_repo = https://github.com/okeuday/quickrand
  2813. pkg_quickrand_commit = master
  2814. PACKAGES += rabbit
  2815. pkg_rabbit_name = rabbit
  2816. pkg_rabbit_description = RabbitMQ Server
  2817. pkg_rabbit_homepage = https://www.rabbitmq.com/
  2818. pkg_rabbit_fetch = git
  2819. pkg_rabbit_repo = https://github.com/rabbitmq/rabbitmq-server.git
  2820. pkg_rabbit_commit = master
  2821. PACKAGES += rabbit_exchange_type_riak
  2822. pkg_rabbit_exchange_type_riak_name = rabbit_exchange_type_riak
  2823. pkg_rabbit_exchange_type_riak_description = Custom RabbitMQ exchange type for sticking messages in Riak
  2824. pkg_rabbit_exchange_type_riak_homepage = https://github.com/jbrisbin/riak-exchange
  2825. pkg_rabbit_exchange_type_riak_fetch = git
  2826. pkg_rabbit_exchange_type_riak_repo = https://github.com/jbrisbin/riak-exchange
  2827. pkg_rabbit_exchange_type_riak_commit = master
  2828. PACKAGES += rack
  2829. pkg_rack_name = rack
  2830. pkg_rack_description = Rack handler for erlang
  2831. pkg_rack_homepage = https://github.com/erlyvideo/rack
  2832. pkg_rack_fetch = git
  2833. pkg_rack_repo = https://github.com/erlyvideo/rack
  2834. pkg_rack_commit = master
  2835. PACKAGES += radierl
  2836. pkg_radierl_name = radierl
  2837. pkg_radierl_description = RADIUS protocol stack implemented in Erlang.
  2838. pkg_radierl_homepage = https://github.com/vances/radierl
  2839. pkg_radierl_fetch = git
  2840. pkg_radierl_repo = https://github.com/vances/radierl
  2841. pkg_radierl_commit = master
  2842. PACKAGES += rafter
  2843. pkg_rafter_name = rafter
  2844. pkg_rafter_description = An Erlang library application which implements the Raft consensus protocol
  2845. pkg_rafter_homepage = https://github.com/andrewjstone/rafter
  2846. pkg_rafter_fetch = git
  2847. pkg_rafter_repo = https://github.com/andrewjstone/rafter
  2848. pkg_rafter_commit = master
  2849. PACKAGES += ranch
  2850. pkg_ranch_name = ranch
  2851. pkg_ranch_description = Socket acceptor pool for TCP protocols.
  2852. pkg_ranch_homepage = http://ninenines.eu
  2853. pkg_ranch_fetch = git
  2854. pkg_ranch_repo = https://github.com/ninenines/ranch
  2855. pkg_ranch_commit = 1.2.1
  2856. PACKAGES += rbeacon
  2857. pkg_rbeacon_name = rbeacon
  2858. pkg_rbeacon_description = LAN discovery and presence in Erlang.
  2859. pkg_rbeacon_homepage = https://github.com/refuge/rbeacon
  2860. pkg_rbeacon_fetch = git
  2861. pkg_rbeacon_repo = https://github.com/refuge/rbeacon
  2862. pkg_rbeacon_commit = master
  2863. PACKAGES += rebar
  2864. pkg_rebar_name = rebar
  2865. pkg_rebar_description = Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.
  2866. pkg_rebar_homepage = http://www.rebar3.org
  2867. pkg_rebar_fetch = git
  2868. pkg_rebar_repo = https://github.com/rebar/rebar3
  2869. pkg_rebar_commit = master
  2870. PACKAGES += rebus
  2871. pkg_rebus_name = rebus
  2872. pkg_rebus_description = A stupid simple, internal, pub/sub event bus written in- and for Erlang.
  2873. pkg_rebus_homepage = https://github.com/olle/rebus
  2874. pkg_rebus_fetch = git
  2875. pkg_rebus_repo = https://github.com/olle/rebus
  2876. pkg_rebus_commit = master
  2877. PACKAGES += rec2json
  2878. pkg_rec2json_name = rec2json
  2879. pkg_rec2json_description = Compile erlang record definitions into modules to convert them to/from json easily.
  2880. pkg_rec2json_homepage = https://github.com/lordnull/rec2json
  2881. pkg_rec2json_fetch = git
  2882. pkg_rec2json_repo = https://github.com/lordnull/rec2json
  2883. pkg_rec2json_commit = master
  2884. PACKAGES += recon
  2885. pkg_recon_name = recon
  2886. pkg_recon_description = Collection of functions and scripts to debug Erlang in production.
  2887. pkg_recon_homepage = https://github.com/ferd/recon
  2888. pkg_recon_fetch = git
  2889. pkg_recon_repo = https://github.com/ferd/recon
  2890. pkg_recon_commit = master
  2891. PACKAGES += record_info
  2892. pkg_record_info_name = record_info
  2893. pkg_record_info_description = Convert between record and proplist
  2894. pkg_record_info_homepage = https://github.com/bipthelin/erlang-record_info
  2895. pkg_record_info_fetch = git
  2896. pkg_record_info_repo = https://github.com/bipthelin/erlang-record_info
  2897. pkg_record_info_commit = master
  2898. PACKAGES += redgrid
  2899. pkg_redgrid_name = redgrid
  2900. pkg_redgrid_description = automatic Erlang node discovery via redis
  2901. pkg_redgrid_homepage = https://github.com/jkvor/redgrid
  2902. pkg_redgrid_fetch = git
  2903. pkg_redgrid_repo = https://github.com/jkvor/redgrid
  2904. pkg_redgrid_commit = master
  2905. PACKAGES += redo
  2906. pkg_redo_name = redo
  2907. pkg_redo_description = pipelined erlang redis client
  2908. pkg_redo_homepage = https://github.com/jkvor/redo
  2909. pkg_redo_fetch = git
  2910. pkg_redo_repo = https://github.com/jkvor/redo
  2911. pkg_redo_commit = master
  2912. PACKAGES += reload_mk
  2913. pkg_reload_mk_name = reload_mk
  2914. pkg_reload_mk_description = Live reload plugin for erlang.mk.
  2915. pkg_reload_mk_homepage = https://github.com/bullno1/reload.mk
  2916. pkg_reload_mk_fetch = git
  2917. pkg_reload_mk_repo = https://github.com/bullno1/reload.mk
  2918. pkg_reload_mk_commit = master
  2919. PACKAGES += reltool_util
  2920. pkg_reltool_util_name = reltool_util
  2921. pkg_reltool_util_description = Erlang reltool utility functionality application
  2922. pkg_reltool_util_homepage = https://github.com/okeuday/reltool_util
  2923. pkg_reltool_util_fetch = git
  2924. pkg_reltool_util_repo = https://github.com/okeuday/reltool_util
  2925. pkg_reltool_util_commit = master
  2926. PACKAGES += relx
  2927. pkg_relx_name = relx
  2928. pkg_relx_description = Sane, simple release creation for Erlang
  2929. pkg_relx_homepage = https://github.com/erlware/relx
  2930. pkg_relx_fetch = git
  2931. pkg_relx_repo = https://github.com/erlware/relx
  2932. pkg_relx_commit = main
  2933. PACKAGES += resource_discovery
  2934. pkg_resource_discovery_name = resource_discovery
  2935. pkg_resource_discovery_description = An application used to dynamically discover resources present in an Erlang node cluster.
  2936. pkg_resource_discovery_homepage = http://erlware.org/
  2937. pkg_resource_discovery_fetch = git
  2938. pkg_resource_discovery_repo = https://github.com/erlware/resource_discovery
  2939. pkg_resource_discovery_commit = master
  2940. PACKAGES += restc
  2941. pkg_restc_name = restc
  2942. pkg_restc_description = Erlang Rest Client
  2943. pkg_restc_homepage = https://github.com/kivra/restclient
  2944. pkg_restc_fetch = git
  2945. pkg_restc_repo = https://github.com/kivra/restclient
  2946. pkg_restc_commit = master
  2947. PACKAGES += rfc4627_jsonrpc
  2948. pkg_rfc4627_jsonrpc_name = rfc4627_jsonrpc
  2949. pkg_rfc4627_jsonrpc_description = Erlang RFC4627 (JSON) codec and JSON-RPC server implementation.
  2950. pkg_rfc4627_jsonrpc_homepage = https://github.com/tonyg/erlang-rfc4627
  2951. pkg_rfc4627_jsonrpc_fetch = git
  2952. pkg_rfc4627_jsonrpc_repo = https://github.com/tonyg/erlang-rfc4627
  2953. pkg_rfc4627_jsonrpc_commit = master
  2954. PACKAGES += riak_control
  2955. pkg_riak_control_name = riak_control
  2956. pkg_riak_control_description = Webmachine-based administration interface for Riak.
  2957. pkg_riak_control_homepage = https://github.com/basho/riak_control
  2958. pkg_riak_control_fetch = git
  2959. pkg_riak_control_repo = https://github.com/basho/riak_control
  2960. pkg_riak_control_commit = master
  2961. PACKAGES += riak_core
  2962. pkg_riak_core_name = riak_core
  2963. pkg_riak_core_description = Distributed systems infrastructure used by Riak.
  2964. pkg_riak_core_homepage = https://github.com/basho/riak_core
  2965. pkg_riak_core_fetch = git
  2966. pkg_riak_core_repo = https://github.com/basho/riak_core
  2967. pkg_riak_core_commit = master
  2968. PACKAGES += riak_dt
  2969. pkg_riak_dt_name = riak_dt
  2970. pkg_riak_dt_description = Convergent replicated datatypes in Erlang
  2971. pkg_riak_dt_homepage = https://github.com/basho/riak_dt
  2972. pkg_riak_dt_fetch = git
  2973. pkg_riak_dt_repo = https://github.com/basho/riak_dt
  2974. pkg_riak_dt_commit = master
  2975. PACKAGES += riak_ensemble
  2976. pkg_riak_ensemble_name = riak_ensemble
  2977. pkg_riak_ensemble_description = Multi-Paxos framework in Erlang
  2978. pkg_riak_ensemble_homepage = https://github.com/basho/riak_ensemble
  2979. pkg_riak_ensemble_fetch = git
  2980. pkg_riak_ensemble_repo = https://github.com/basho/riak_ensemble
  2981. pkg_riak_ensemble_commit = master
  2982. PACKAGES += riak_kv
  2983. pkg_riak_kv_name = riak_kv
  2984. pkg_riak_kv_description = Riak Key/Value Store
  2985. pkg_riak_kv_homepage = https://github.com/basho/riak_kv
  2986. pkg_riak_kv_fetch = git
  2987. pkg_riak_kv_repo = https://github.com/basho/riak_kv
  2988. pkg_riak_kv_commit = master
  2989. PACKAGES += riak_pg
  2990. pkg_riak_pg_name = riak_pg
  2991. pkg_riak_pg_description = Distributed process groups with riak_core.
  2992. pkg_riak_pg_homepage = https://github.com/cmeiklejohn/riak_pg
  2993. pkg_riak_pg_fetch = git
  2994. pkg_riak_pg_repo = https://github.com/cmeiklejohn/riak_pg
  2995. pkg_riak_pg_commit = master
  2996. PACKAGES += riak_pipe
  2997. pkg_riak_pipe_name = riak_pipe
  2998. pkg_riak_pipe_description = Riak Pipelines
  2999. pkg_riak_pipe_homepage = https://github.com/basho/riak_pipe
  3000. pkg_riak_pipe_fetch = git
  3001. pkg_riak_pipe_repo = https://github.com/basho/riak_pipe
  3002. pkg_riak_pipe_commit = master
  3003. PACKAGES += riak_sysmon
  3004. pkg_riak_sysmon_name = riak_sysmon
  3005. pkg_riak_sysmon_description = Simple OTP app for managing Erlang VM system_monitor event messages
  3006. pkg_riak_sysmon_homepage = https://github.com/basho/riak_sysmon
  3007. pkg_riak_sysmon_fetch = git
  3008. pkg_riak_sysmon_repo = https://github.com/basho/riak_sysmon
  3009. pkg_riak_sysmon_commit = master
  3010. PACKAGES += riak_test
  3011. pkg_riak_test_name = riak_test
  3012. pkg_riak_test_description = I'm in your cluster, testing your riaks
  3013. pkg_riak_test_homepage = https://github.com/basho/riak_test
  3014. pkg_riak_test_fetch = git
  3015. pkg_riak_test_repo = https://github.com/basho/riak_test
  3016. pkg_riak_test_commit = master
  3017. PACKAGES += riakc
  3018. pkg_riakc_name = riakc
  3019. pkg_riakc_description = Erlang clients for Riak.
  3020. pkg_riakc_homepage = https://github.com/basho/riak-erlang-client
  3021. pkg_riakc_fetch = git
  3022. pkg_riakc_repo = https://github.com/basho/riak-erlang-client
  3023. pkg_riakc_commit = master
  3024. PACKAGES += riakhttpc
  3025. pkg_riakhttpc_name = riakhttpc
  3026. pkg_riakhttpc_description = Riak Erlang client using the HTTP interface
  3027. pkg_riakhttpc_homepage = https://github.com/basho/riak-erlang-http-client
  3028. pkg_riakhttpc_fetch = git
  3029. pkg_riakhttpc_repo = https://github.com/basho/riak-erlang-http-client
  3030. pkg_riakhttpc_commit = master
  3031. PACKAGES += riaknostic
  3032. pkg_riaknostic_name = riaknostic
  3033. pkg_riaknostic_description = A diagnostic tool for Riak installations, to find common errors asap
  3034. pkg_riaknostic_homepage = https://github.com/basho/riaknostic
  3035. pkg_riaknostic_fetch = git
  3036. pkg_riaknostic_repo = https://github.com/basho/riaknostic
  3037. pkg_riaknostic_commit = master
  3038. PACKAGES += riakpool
  3039. pkg_riakpool_name = riakpool
  3040. pkg_riakpool_description = erlang riak client pool
  3041. pkg_riakpool_homepage = https://github.com/dweldon/riakpool
  3042. pkg_riakpool_fetch = git
  3043. pkg_riakpool_repo = https://github.com/dweldon/riakpool
  3044. pkg_riakpool_commit = master
  3045. PACKAGES += rivus_cep
  3046. pkg_rivus_cep_name = rivus_cep
  3047. pkg_rivus_cep_description = Complex event processing in Erlang
  3048. pkg_rivus_cep_homepage = https://github.com/vascokk/rivus_cep
  3049. pkg_rivus_cep_fetch = git
  3050. pkg_rivus_cep_repo = https://github.com/vascokk/rivus_cep
  3051. pkg_rivus_cep_commit = master
  3052. PACKAGES += rlimit
  3053. pkg_rlimit_name = rlimit
  3054. pkg_rlimit_description = Magnus Klaar's rate limiter code from etorrent
  3055. pkg_rlimit_homepage = https://github.com/jlouis/rlimit
  3056. pkg_rlimit_fetch = git
  3057. pkg_rlimit_repo = https://github.com/jlouis/rlimit
  3058. pkg_rlimit_commit = master
  3059. PACKAGES += rust_mk
  3060. pkg_rust_mk_name = rust_mk
  3061. pkg_rust_mk_description = Build Rust crates in an Erlang application
  3062. pkg_rust_mk_homepage = https://github.com/goertzenator/rust.mk
  3063. pkg_rust_mk_fetch = git
  3064. pkg_rust_mk_repo = https://github.com/goertzenator/rust.mk
  3065. pkg_rust_mk_commit = master
  3066. PACKAGES += safetyvalve
  3067. pkg_safetyvalve_name = safetyvalve
  3068. pkg_safetyvalve_description = A safety valve for your erlang node
  3069. pkg_safetyvalve_homepage = https://github.com/jlouis/safetyvalve
  3070. pkg_safetyvalve_fetch = git
  3071. pkg_safetyvalve_repo = https://github.com/jlouis/safetyvalve
  3072. pkg_safetyvalve_commit = master
  3073. PACKAGES += seestar
  3074. pkg_seestar_name = seestar
  3075. pkg_seestar_description = The Erlang client for Cassandra 1.2+ binary protocol
  3076. pkg_seestar_homepage = https://github.com/iamaleksey/seestar
  3077. pkg_seestar_fetch = git
  3078. pkg_seestar_repo = https://github.com/iamaleksey/seestar
  3079. pkg_seestar_commit = master
  3080. PACKAGES += service
  3081. pkg_service_name = service
  3082. pkg_service_description = A minimal Erlang behavior for creating CloudI internal services
  3083. pkg_service_homepage = http://cloudi.org/
  3084. pkg_service_fetch = git
  3085. pkg_service_repo = https://github.com/CloudI/service
  3086. pkg_service_commit = master
  3087. PACKAGES += setup
  3088. pkg_setup_name = setup
  3089. pkg_setup_description = Generic setup utility for Erlang-based systems
  3090. pkg_setup_homepage = https://github.com/uwiger/setup
  3091. pkg_setup_fetch = git
  3092. pkg_setup_repo = https://github.com/uwiger/setup
  3093. pkg_setup_commit = master
  3094. PACKAGES += sext
  3095. pkg_sext_name = sext
  3096. pkg_sext_description = Sortable Erlang Term Serialization
  3097. pkg_sext_homepage = https://github.com/uwiger/sext
  3098. pkg_sext_fetch = git
  3099. pkg_sext_repo = https://github.com/uwiger/sext
  3100. pkg_sext_commit = master
  3101. PACKAGES += sfmt
  3102. pkg_sfmt_name = sfmt
  3103. pkg_sfmt_description = SFMT pseudo random number generator for Erlang.
  3104. pkg_sfmt_homepage = https://github.com/jj1bdx/sfmt-erlang
  3105. pkg_sfmt_fetch = git
  3106. pkg_sfmt_repo = https://github.com/jj1bdx/sfmt-erlang
  3107. pkg_sfmt_commit = master
  3108. PACKAGES += sgte
  3109. pkg_sgte_name = sgte
  3110. pkg_sgte_description = A simple Erlang Template Engine
  3111. pkg_sgte_homepage = https://github.com/filippo/sgte
  3112. pkg_sgte_fetch = git
  3113. pkg_sgte_repo = https://github.com/filippo/sgte
  3114. pkg_sgte_commit = master
  3115. PACKAGES += sheriff
  3116. pkg_sheriff_name = sheriff
  3117. pkg_sheriff_description = Parse transform for type based validation.
  3118. pkg_sheriff_homepage = http://ninenines.eu
  3119. pkg_sheriff_fetch = git
  3120. pkg_sheriff_repo = https://github.com/extend/sheriff
  3121. pkg_sheriff_commit = master
  3122. PACKAGES += shotgun
  3123. pkg_shotgun_name = shotgun
  3124. pkg_shotgun_description = better than just a gun
  3125. pkg_shotgun_homepage = https://github.com/inaka/shotgun
  3126. pkg_shotgun_fetch = git
  3127. pkg_shotgun_repo = https://github.com/inaka/shotgun
  3128. pkg_shotgun_commit = master
  3129. PACKAGES += sidejob
  3130. pkg_sidejob_name = sidejob
  3131. pkg_sidejob_description = Parallel worker and capacity limiting library for Erlang
  3132. pkg_sidejob_homepage = https://github.com/basho/sidejob
  3133. pkg_sidejob_fetch = git
  3134. pkg_sidejob_repo = https://github.com/basho/sidejob
  3135. pkg_sidejob_commit = master
  3136. PACKAGES += sieve
  3137. pkg_sieve_name = sieve
  3138. pkg_sieve_description = sieve is a simple TCP routing proxy (layer 7) in erlang
  3139. pkg_sieve_homepage = https://github.com/benoitc/sieve
  3140. pkg_sieve_fetch = git
  3141. pkg_sieve_repo = https://github.com/benoitc/sieve
  3142. pkg_sieve_commit = master
  3143. PACKAGES += sighandler
  3144. pkg_sighandler_name = sighandler
  3145. pkg_sighandler_description = Handle UNIX signals in Er lang
  3146. pkg_sighandler_homepage = https://github.com/jkingsbery/sighandler
  3147. pkg_sighandler_fetch = git
  3148. pkg_sighandler_repo = https://github.com/jkingsbery/sighandler
  3149. pkg_sighandler_commit = master
  3150. PACKAGES += simhash
  3151. pkg_simhash_name = simhash
  3152. pkg_simhash_description = Simhashing for Erlang -- hashing algorithm to find near-duplicates in binary data.
  3153. pkg_simhash_homepage = https://github.com/ferd/simhash
  3154. pkg_simhash_fetch = git
  3155. pkg_simhash_repo = https://github.com/ferd/simhash
  3156. pkg_simhash_commit = master
  3157. PACKAGES += simple_bridge
  3158. pkg_simple_bridge_name = simple_bridge
  3159. pkg_simple_bridge_description = A simple, standardized interface library to Erlang HTTP Servers.
  3160. pkg_simple_bridge_homepage = https://github.com/nitrogen/simple_bridge
  3161. pkg_simple_bridge_fetch = git
  3162. pkg_simple_bridge_repo = https://github.com/nitrogen/simple_bridge
  3163. pkg_simple_bridge_commit = master
  3164. PACKAGES += simple_oauth2
  3165. pkg_simple_oauth2_name = simple_oauth2
  3166. pkg_simple_oauth2_description = Simple erlang OAuth2 client module for any http server framework (Google, Facebook, Yandex, Vkontakte are preconfigured)
  3167. pkg_simple_oauth2_homepage = https://github.com/virtan/simple_oauth2
  3168. pkg_simple_oauth2_fetch = git
  3169. pkg_simple_oauth2_repo = https://github.com/virtan/simple_oauth2
  3170. pkg_simple_oauth2_commit = master
  3171. PACKAGES += skel
  3172. pkg_skel_name = skel
  3173. pkg_skel_description = A Streaming Process-based Skeleton Library for Erlang
  3174. pkg_skel_homepage = https://github.com/ParaPhrase/skel
  3175. pkg_skel_fetch = git
  3176. pkg_skel_repo = https://github.com/ParaPhrase/skel
  3177. pkg_skel_commit = master
  3178. PACKAGES += slack
  3179. pkg_slack_name = slack
  3180. pkg_slack_description = Minimal slack notification OTP library.
  3181. pkg_slack_homepage = https://github.com/DonBranson/slack
  3182. pkg_slack_fetch = git
  3183. pkg_slack_repo = https://github.com/DonBranson/slack.git
  3184. pkg_slack_commit = master
  3185. PACKAGES += smother
  3186. pkg_smother_name = smother
  3187. pkg_smother_description = Extended code coverage metrics for Erlang.
  3188. pkg_smother_homepage = https://ramsay-t.github.io/Smother/
  3189. pkg_smother_fetch = git
  3190. pkg_smother_repo = https://github.com/ramsay-t/Smother
  3191. pkg_smother_commit = master
  3192. PACKAGES += snappyer
  3193. pkg_snappyer_name = snappyer
  3194. pkg_snappyer_description = Snappy as nif for Erlang
  3195. pkg_snappyer_homepage = https://github.com/zmstone/snappyer
  3196. pkg_snappyer_fetch = git
  3197. pkg_snappyer_repo = https://github.com/zmstone/snappyer.git
  3198. pkg_snappyer_commit = master
  3199. PACKAGES += social
  3200. pkg_social_name = social
  3201. pkg_social_description = Cowboy handler for social login via OAuth2 providers
  3202. pkg_social_homepage = https://github.com/dvv/social
  3203. pkg_social_fetch = git
  3204. pkg_social_repo = https://github.com/dvv/social
  3205. pkg_social_commit = master
  3206. PACKAGES += spapi_router
  3207. pkg_spapi_router_name = spapi_router
  3208. pkg_spapi_router_description = Partially-connected Erlang clustering
  3209. pkg_spapi_router_homepage = https://github.com/spilgames/spapi-router
  3210. pkg_spapi_router_fetch = git
  3211. pkg_spapi_router_repo = https://github.com/spilgames/spapi-router
  3212. pkg_spapi_router_commit = master
  3213. PACKAGES += sqerl
  3214. pkg_sqerl_name = sqerl
  3215. pkg_sqerl_description = An Erlang-flavoured SQL DSL
  3216. pkg_sqerl_homepage = https://github.com/hairyhum/sqerl
  3217. pkg_sqerl_fetch = git
  3218. pkg_sqerl_repo = https://github.com/hairyhum/sqerl
  3219. pkg_sqerl_commit = master
  3220. PACKAGES += srly
  3221. pkg_srly_name = srly
  3222. pkg_srly_description = Native Erlang Unix serial interface
  3223. pkg_srly_homepage = https://github.com/msantos/srly
  3224. pkg_srly_fetch = git
  3225. pkg_srly_repo = https://github.com/msantos/srly
  3226. pkg_srly_commit = master
  3227. PACKAGES += sshrpc
  3228. pkg_sshrpc_name = sshrpc
  3229. pkg_sshrpc_description = Erlang SSH RPC module (experimental)
  3230. pkg_sshrpc_homepage = https://github.com/jj1bdx/sshrpc
  3231. pkg_sshrpc_fetch = git
  3232. pkg_sshrpc_repo = https://github.com/jj1bdx/sshrpc
  3233. pkg_sshrpc_commit = master
  3234. PACKAGES += stable
  3235. pkg_stable_name = stable
  3236. pkg_stable_description = Library of assorted helpers for Cowboy web server.
  3237. pkg_stable_homepage = https://github.com/dvv/stable
  3238. pkg_stable_fetch = git
  3239. pkg_stable_repo = https://github.com/dvv/stable
  3240. pkg_stable_commit = master
  3241. PACKAGES += statebox
  3242. pkg_statebox_name = statebox
  3243. pkg_statebox_description = Erlang state monad with merge/conflict-resolution capabilities. Useful for Riak.
  3244. pkg_statebox_homepage = https://github.com/mochi/statebox
  3245. pkg_statebox_fetch = git
  3246. pkg_statebox_repo = https://github.com/mochi/statebox
  3247. pkg_statebox_commit = master
  3248. PACKAGES += statebox_riak
  3249. pkg_statebox_riak_name = statebox_riak
  3250. pkg_statebox_riak_description = Convenience library that makes it easier to use statebox with riak, extracted from best practices in our production code at Mochi Media.
  3251. pkg_statebox_riak_homepage = https://github.com/mochi/statebox_riak
  3252. pkg_statebox_riak_fetch = git
  3253. pkg_statebox_riak_repo = https://github.com/mochi/statebox_riak
  3254. pkg_statebox_riak_commit = master
  3255. PACKAGES += statman
  3256. pkg_statman_name = statman
  3257. pkg_statman_description = Efficiently collect massive volumes of metrics inside the Erlang VM
  3258. pkg_statman_homepage = https://github.com/knutin/statman
  3259. pkg_statman_fetch = git
  3260. pkg_statman_repo = https://github.com/knutin/statman
  3261. pkg_statman_commit = master
  3262. PACKAGES += statsderl
  3263. pkg_statsderl_name = statsderl
  3264. pkg_statsderl_description = StatsD client (erlang)
  3265. pkg_statsderl_homepage = https://github.com/lpgauth/statsderl
  3266. pkg_statsderl_fetch = git
  3267. pkg_statsderl_repo = https://github.com/lpgauth/statsderl
  3268. pkg_statsderl_commit = master
  3269. PACKAGES += stdinout_pool
  3270. pkg_stdinout_pool_name = stdinout_pool
  3271. pkg_stdinout_pool_description = stdinout_pool : stuff goes in, stuff goes out. there's never any miscommunication.
  3272. pkg_stdinout_pool_homepage = https://github.com/mattsta/erlang-stdinout-pool
  3273. pkg_stdinout_pool_fetch = git
  3274. pkg_stdinout_pool_repo = https://github.com/mattsta/erlang-stdinout-pool
  3275. pkg_stdinout_pool_commit = master
  3276. PACKAGES += stockdb
  3277. pkg_stockdb_name = stockdb
  3278. pkg_stockdb_description = Database for storing Stock Exchange quotes in erlang
  3279. pkg_stockdb_homepage = https://github.com/maxlapshin/stockdb
  3280. pkg_stockdb_fetch = git
  3281. pkg_stockdb_repo = https://github.com/maxlapshin/stockdb
  3282. pkg_stockdb_commit = master
  3283. PACKAGES += stripe
  3284. pkg_stripe_name = stripe
  3285. pkg_stripe_description = Erlang interface to the stripe.com API
  3286. pkg_stripe_homepage = https://github.com/mattsta/stripe-erlang
  3287. pkg_stripe_fetch = git
  3288. pkg_stripe_repo = https://github.com/mattsta/stripe-erlang
  3289. pkg_stripe_commit = v1
  3290. PACKAGES += subproc
  3291. pkg_subproc_name = subproc
  3292. pkg_subproc_description = unix subprocess manager with {active,once|false} modes
  3293. pkg_subproc_homepage = http://dozzie.jarowit.net/trac/wiki/subproc
  3294. pkg_subproc_fetch = git
  3295. pkg_subproc_repo = https://github.com/dozzie/subproc
  3296. pkg_subproc_commit = v0.1.0
  3297. PACKAGES += supervisor3
  3298. pkg_supervisor3_name = supervisor3
  3299. pkg_supervisor3_description = OTP supervisor with additional strategies
  3300. pkg_supervisor3_homepage = https://github.com/klarna/supervisor3
  3301. pkg_supervisor3_fetch = git
  3302. pkg_supervisor3_repo = https://github.com/klarna/supervisor3.git
  3303. pkg_supervisor3_commit = master
  3304. PACKAGES += surrogate
  3305. pkg_surrogate_name = surrogate
  3306. pkg_surrogate_description = Proxy server written in erlang. Supports reverse proxy load balancing and forward proxy with http (including CONNECT), socks4, socks5, and transparent proxy modes.
  3307. pkg_surrogate_homepage = https://github.com/skruger/Surrogate
  3308. pkg_surrogate_fetch = git
  3309. pkg_surrogate_repo = https://github.com/skruger/Surrogate
  3310. pkg_surrogate_commit = master
  3311. PACKAGES += swab
  3312. pkg_swab_name = swab
  3313. pkg_swab_description = General purpose buffer handling module
  3314. pkg_swab_homepage = https://github.com/crownedgrouse/swab
  3315. pkg_swab_fetch = git
  3316. pkg_swab_repo = https://github.com/crownedgrouse/swab
  3317. pkg_swab_commit = master
  3318. PACKAGES += swarm
  3319. pkg_swarm_name = swarm
  3320. pkg_swarm_description = Fast and simple acceptor pool for Erlang
  3321. pkg_swarm_homepage = https://github.com/jeremey/swarm
  3322. pkg_swarm_fetch = git
  3323. pkg_swarm_repo = https://github.com/jeremey/swarm
  3324. pkg_swarm_commit = master
  3325. PACKAGES += switchboard
  3326. pkg_switchboard_name = switchboard
  3327. pkg_switchboard_description = A framework for processing email using worker plugins.
  3328. pkg_switchboard_homepage = https://github.com/thusfresh/switchboard
  3329. pkg_switchboard_fetch = git
  3330. pkg_switchboard_repo = https://github.com/thusfresh/switchboard
  3331. pkg_switchboard_commit = master
  3332. PACKAGES += syn
  3333. pkg_syn_name = syn
  3334. pkg_syn_description = A global Process Registry and Process Group manager for Erlang.
  3335. pkg_syn_homepage = https://github.com/ostinelli/syn
  3336. pkg_syn_fetch = git
  3337. pkg_syn_repo = https://github.com/ostinelli/syn
  3338. pkg_syn_commit = master
  3339. PACKAGES += sync
  3340. pkg_sync_name = sync
  3341. pkg_sync_description = On-the-fly recompiling and reloading in Erlang.
  3342. pkg_sync_homepage = https://github.com/rustyio/sync
  3343. pkg_sync_fetch = git
  3344. pkg_sync_repo = https://github.com/rustyio/sync
  3345. pkg_sync_commit = master
  3346. PACKAGES += syntaxerl
  3347. pkg_syntaxerl_name = syntaxerl
  3348. pkg_syntaxerl_description = Syntax checker for Erlang
  3349. pkg_syntaxerl_homepage = https://github.com/ten0s/syntaxerl
  3350. pkg_syntaxerl_fetch = git
  3351. pkg_syntaxerl_repo = https://github.com/ten0s/syntaxerl
  3352. pkg_syntaxerl_commit = master
  3353. PACKAGES += syslog
  3354. pkg_syslog_name = syslog
  3355. pkg_syslog_description = Erlang port driver for interacting with syslog via syslog(3)
  3356. pkg_syslog_homepage = https://github.com/Vagabond/erlang-syslog
  3357. pkg_syslog_fetch = git
  3358. pkg_syslog_repo = https://github.com/Vagabond/erlang-syslog
  3359. pkg_syslog_commit = master
  3360. PACKAGES += taskforce
  3361. pkg_taskforce_name = taskforce
  3362. pkg_taskforce_description = Erlang worker pools for controlled parallelisation of arbitrary tasks.
  3363. pkg_taskforce_homepage = https://github.com/g-andrade/taskforce
  3364. pkg_taskforce_fetch = git
  3365. pkg_taskforce_repo = https://github.com/g-andrade/taskforce
  3366. pkg_taskforce_commit = master
  3367. PACKAGES += tddreloader
  3368. pkg_tddreloader_name = tddreloader
  3369. pkg_tddreloader_description = Shell utility for recompiling, reloading, and testing code as it changes
  3370. pkg_tddreloader_homepage = https://github.com/version2beta/tddreloader
  3371. pkg_tddreloader_fetch = git
  3372. pkg_tddreloader_repo = https://github.com/version2beta/tddreloader
  3373. pkg_tddreloader_commit = master
  3374. PACKAGES += tempo
  3375. pkg_tempo_name = tempo
  3376. pkg_tempo_description = NIF-based date and time parsing and formatting for Erlang.
  3377. pkg_tempo_homepage = https://github.com/selectel/tempo
  3378. pkg_tempo_fetch = git
  3379. pkg_tempo_repo = https://github.com/selectel/tempo
  3380. pkg_tempo_commit = master
  3381. PACKAGES += ticktick
  3382. pkg_ticktick_name = ticktick
  3383. pkg_ticktick_description = Ticktick is an id generator for message service.
  3384. pkg_ticktick_homepage = https://github.com/ericliang/ticktick
  3385. pkg_ticktick_fetch = git
  3386. pkg_ticktick_repo = https://github.com/ericliang/ticktick
  3387. pkg_ticktick_commit = master
  3388. PACKAGES += tinymq
  3389. pkg_tinymq_name = tinymq
  3390. pkg_tinymq_description = TinyMQ - a diminutive, in-memory message queue
  3391. pkg_tinymq_homepage = https://github.com/ChicagoBoss/tinymq
  3392. pkg_tinymq_fetch = git
  3393. pkg_tinymq_repo = https://github.com/ChicagoBoss/tinymq
  3394. pkg_tinymq_commit = master
  3395. PACKAGES += tinymt
  3396. pkg_tinymt_name = tinymt
  3397. pkg_tinymt_description = TinyMT pseudo random number generator for Erlang.
  3398. pkg_tinymt_homepage = https://github.com/jj1bdx/tinymt-erlang
  3399. pkg_tinymt_fetch = git
  3400. pkg_tinymt_repo = https://github.com/jj1bdx/tinymt-erlang
  3401. pkg_tinymt_commit = master
  3402. PACKAGES += tirerl
  3403. pkg_tirerl_name = tirerl
  3404. pkg_tirerl_description = Erlang interface to Elastic Search
  3405. pkg_tirerl_homepage = https://github.com/inaka/tirerl
  3406. pkg_tirerl_fetch = git
  3407. pkg_tirerl_repo = https://github.com/inaka/tirerl
  3408. pkg_tirerl_commit = master
  3409. PACKAGES += toml
  3410. pkg_toml_name = toml
  3411. pkg_toml_description = TOML (0.4.0) config parser
  3412. pkg_toml_homepage = http://dozzie.jarowit.net/trac/wiki/TOML
  3413. pkg_toml_fetch = git
  3414. pkg_toml_repo = https://github.com/dozzie/toml
  3415. pkg_toml_commit = v0.2.0
  3416. PACKAGES += traffic_tools
  3417. pkg_traffic_tools_name = traffic_tools
  3418. pkg_traffic_tools_description = Simple traffic limiting library
  3419. pkg_traffic_tools_homepage = https://github.com/systra/traffic_tools
  3420. pkg_traffic_tools_fetch = git
  3421. pkg_traffic_tools_repo = https://github.com/systra/traffic_tools
  3422. pkg_traffic_tools_commit = master
  3423. PACKAGES += trails
  3424. pkg_trails_name = trails
  3425. pkg_trails_description = A couple of improvements over Cowboy Routes
  3426. pkg_trails_homepage = http://inaka.github.io/cowboy-trails/
  3427. pkg_trails_fetch = git
  3428. pkg_trails_repo = https://github.com/inaka/cowboy-trails
  3429. pkg_trails_commit = master
  3430. PACKAGES += trane
  3431. pkg_trane_name = trane
  3432. pkg_trane_description = SAX style broken HTML parser in Erlang
  3433. pkg_trane_homepage = https://github.com/massemanet/trane
  3434. pkg_trane_fetch = git
  3435. pkg_trane_repo = https://github.com/massemanet/trane
  3436. pkg_trane_commit = master
  3437. PACKAGES += transit
  3438. pkg_transit_name = transit
  3439. pkg_transit_description = transit format for erlang
  3440. pkg_transit_homepage = https://github.com/isaiah/transit-erlang
  3441. pkg_transit_fetch = git
  3442. pkg_transit_repo = https://github.com/isaiah/transit-erlang
  3443. pkg_transit_commit = master
  3444. PACKAGES += trie
  3445. pkg_trie_name = trie
  3446. pkg_trie_description = Erlang Trie Implementation
  3447. pkg_trie_homepage = https://github.com/okeuday/trie
  3448. pkg_trie_fetch = git
  3449. pkg_trie_repo = https://github.com/okeuday/trie
  3450. pkg_trie_commit = master
  3451. PACKAGES += triq
  3452. pkg_triq_name = triq
  3453. pkg_triq_description = Trifork QuickCheck
  3454. pkg_triq_homepage = https://triq.gitlab.io
  3455. pkg_triq_fetch = git
  3456. pkg_triq_repo = https://gitlab.com/triq/triq.git
  3457. pkg_triq_commit = master
  3458. PACKAGES += tunctl
  3459. pkg_tunctl_name = tunctl
  3460. pkg_tunctl_description = Erlang TUN/TAP interface
  3461. pkg_tunctl_homepage = https://github.com/msantos/tunctl
  3462. pkg_tunctl_fetch = git
  3463. pkg_tunctl_repo = https://github.com/msantos/tunctl
  3464. pkg_tunctl_commit = master
  3465. PACKAGES += twerl
  3466. pkg_twerl_name = twerl
  3467. pkg_twerl_description = Erlang client for the Twitter Streaming API
  3468. pkg_twerl_homepage = https://github.com/lucaspiller/twerl
  3469. pkg_twerl_fetch = git
  3470. pkg_twerl_repo = https://github.com/lucaspiller/twerl
  3471. pkg_twerl_commit = oauth
  3472. PACKAGES += twitter_erlang
  3473. pkg_twitter_erlang_name = twitter_erlang
  3474. pkg_twitter_erlang_description = An Erlang twitter client
  3475. pkg_twitter_erlang_homepage = https://github.com/ngerakines/erlang_twitter
  3476. pkg_twitter_erlang_fetch = git
  3477. pkg_twitter_erlang_repo = https://github.com/ngerakines/erlang_twitter
  3478. pkg_twitter_erlang_commit = master
  3479. PACKAGES += ucol_nif
  3480. pkg_ucol_nif_name = ucol_nif
  3481. pkg_ucol_nif_description = ICU based collation Erlang module
  3482. pkg_ucol_nif_homepage = https://github.com/refuge/ucol_nif
  3483. pkg_ucol_nif_fetch = git
  3484. pkg_ucol_nif_repo = https://github.com/refuge/ucol_nif
  3485. pkg_ucol_nif_commit = master
  3486. PACKAGES += unicorn
  3487. pkg_unicorn_name = unicorn
  3488. pkg_unicorn_description = Generic configuration server
  3489. pkg_unicorn_homepage = https://github.com/shizzard/unicorn
  3490. pkg_unicorn_fetch = git
  3491. pkg_unicorn_repo = https://github.com/shizzard/unicorn
  3492. pkg_unicorn_commit = master
  3493. PACKAGES += unsplit
  3494. pkg_unsplit_name = unsplit
  3495. pkg_unsplit_description = Resolves conflicts in Mnesia after network splits
  3496. pkg_unsplit_homepage = https://github.com/uwiger/unsplit
  3497. pkg_unsplit_fetch = git
  3498. pkg_unsplit_repo = https://github.com/uwiger/unsplit
  3499. pkg_unsplit_commit = master
  3500. PACKAGES += uuid
  3501. pkg_uuid_name = uuid
  3502. pkg_uuid_description = Erlang UUID Implementation
  3503. pkg_uuid_homepage = https://github.com/okeuday/uuid
  3504. pkg_uuid_fetch = git
  3505. pkg_uuid_repo = https://github.com/okeuday/uuid
  3506. pkg_uuid_commit = master
  3507. PACKAGES += ux
  3508. pkg_ux_name = ux
  3509. pkg_ux_description = Unicode eXtention for Erlang (Strings, Collation)
  3510. pkg_ux_homepage = https://github.com/erlang-unicode/ux
  3511. pkg_ux_fetch = git
  3512. pkg_ux_repo = https://github.com/erlang-unicode/ux
  3513. pkg_ux_commit = master
  3514. PACKAGES += vert
  3515. pkg_vert_name = vert
  3516. pkg_vert_description = Erlang binding to libvirt virtualization API
  3517. pkg_vert_homepage = https://github.com/msantos/erlang-libvirt
  3518. pkg_vert_fetch = git
  3519. pkg_vert_repo = https://github.com/msantos/erlang-libvirt
  3520. pkg_vert_commit = master
  3521. PACKAGES += verx
  3522. pkg_verx_name = verx
  3523. pkg_verx_description = Erlang implementation of the libvirtd remote protocol
  3524. pkg_verx_homepage = https://github.com/msantos/verx
  3525. pkg_verx_fetch = git
  3526. pkg_verx_repo = https://github.com/msantos/verx
  3527. pkg_verx_commit = master
  3528. PACKAGES += vmq_acl
  3529. pkg_vmq_acl_name = vmq_acl
  3530. pkg_vmq_acl_description = Component of VerneMQ: A distributed MQTT message broker
  3531. pkg_vmq_acl_homepage = https://verne.mq/
  3532. pkg_vmq_acl_fetch = git
  3533. pkg_vmq_acl_repo = https://github.com/erlio/vmq_acl
  3534. pkg_vmq_acl_commit = master
  3535. PACKAGES += vmq_bridge
  3536. pkg_vmq_bridge_name = vmq_bridge
  3537. pkg_vmq_bridge_description = Component of VerneMQ: A distributed MQTT message broker
  3538. pkg_vmq_bridge_homepage = https://verne.mq/
  3539. pkg_vmq_bridge_fetch = git
  3540. pkg_vmq_bridge_repo = https://github.com/erlio/vmq_bridge
  3541. pkg_vmq_bridge_commit = master
  3542. PACKAGES += vmq_graphite
  3543. pkg_vmq_graphite_name = vmq_graphite
  3544. pkg_vmq_graphite_description = Component of VerneMQ: A distributed MQTT message broker
  3545. pkg_vmq_graphite_homepage = https://verne.mq/
  3546. pkg_vmq_graphite_fetch = git
  3547. pkg_vmq_graphite_repo = https://github.com/erlio/vmq_graphite
  3548. pkg_vmq_graphite_commit = master
  3549. PACKAGES += vmq_passwd
  3550. pkg_vmq_passwd_name = vmq_passwd
  3551. pkg_vmq_passwd_description = Component of VerneMQ: A distributed MQTT message broker
  3552. pkg_vmq_passwd_homepage = https://verne.mq/
  3553. pkg_vmq_passwd_fetch = git
  3554. pkg_vmq_passwd_repo = https://github.com/erlio/vmq_passwd
  3555. pkg_vmq_passwd_commit = master
  3556. PACKAGES += vmq_server
  3557. pkg_vmq_server_name = vmq_server
  3558. pkg_vmq_server_description = Component of VerneMQ: A distributed MQTT message broker
  3559. pkg_vmq_server_homepage = https://verne.mq/
  3560. pkg_vmq_server_fetch = git
  3561. pkg_vmq_server_repo = https://github.com/erlio/vmq_server
  3562. pkg_vmq_server_commit = master
  3563. PACKAGES += vmq_snmp
  3564. pkg_vmq_snmp_name = vmq_snmp
  3565. pkg_vmq_snmp_description = Component of VerneMQ: A distributed MQTT message broker
  3566. pkg_vmq_snmp_homepage = https://verne.mq/
  3567. pkg_vmq_snmp_fetch = git
  3568. pkg_vmq_snmp_repo = https://github.com/erlio/vmq_snmp
  3569. pkg_vmq_snmp_commit = master
  3570. PACKAGES += vmq_systree
  3571. pkg_vmq_systree_name = vmq_systree
  3572. pkg_vmq_systree_description = Component of VerneMQ: A distributed MQTT message broker
  3573. pkg_vmq_systree_homepage = https://verne.mq/
  3574. pkg_vmq_systree_fetch = git
  3575. pkg_vmq_systree_repo = https://github.com/erlio/vmq_systree
  3576. pkg_vmq_systree_commit = master
  3577. PACKAGES += vmstats
  3578. pkg_vmstats_name = vmstats
  3579. pkg_vmstats_description = tiny Erlang app that works in conjunction with statsderl in order to generate information on the Erlang VM for graphite logs.
  3580. pkg_vmstats_homepage = https://github.com/ferd/vmstats
  3581. pkg_vmstats_fetch = git
  3582. pkg_vmstats_repo = https://github.com/ferd/vmstats
  3583. pkg_vmstats_commit = master
  3584. PACKAGES += walrus
  3585. pkg_walrus_name = walrus
  3586. pkg_walrus_description = Walrus - Mustache-like Templating
  3587. pkg_walrus_homepage = https://github.com/devinus/walrus
  3588. pkg_walrus_fetch = git
  3589. pkg_walrus_repo = https://github.com/devinus/walrus
  3590. pkg_walrus_commit = master
  3591. PACKAGES += webmachine
  3592. pkg_webmachine_name = webmachine
  3593. pkg_webmachine_description = A REST-based system for building web applications.
  3594. pkg_webmachine_homepage = https://github.com/basho/webmachine
  3595. pkg_webmachine_fetch = git
  3596. pkg_webmachine_repo = https://github.com/basho/webmachine
  3597. pkg_webmachine_commit = master
  3598. PACKAGES += websocket_client
  3599. pkg_websocket_client_name = websocket_client
  3600. pkg_websocket_client_description = Erlang websocket client (ws and wss supported)
  3601. pkg_websocket_client_homepage = https://github.com/jeremyong/websocket_client
  3602. pkg_websocket_client_fetch = git
  3603. pkg_websocket_client_repo = https://github.com/jeremyong/websocket_client
  3604. pkg_websocket_client_commit = master
  3605. PACKAGES += worker_pool
  3606. pkg_worker_pool_name = worker_pool
  3607. pkg_worker_pool_description = a simple erlang worker pool
  3608. pkg_worker_pool_homepage = https://github.com/inaka/worker_pool
  3609. pkg_worker_pool_fetch = git
  3610. pkg_worker_pool_repo = https://github.com/inaka/worker_pool
  3611. pkg_worker_pool_commit = master
  3612. PACKAGES += wrangler
  3613. pkg_wrangler_name = wrangler
  3614. pkg_wrangler_description = Import of the Wrangler svn repository.
  3615. pkg_wrangler_homepage = http://www.cs.kent.ac.uk/projects/wrangler/Home.html
  3616. pkg_wrangler_fetch = git
  3617. pkg_wrangler_repo = https://github.com/RefactoringTools/wrangler
  3618. pkg_wrangler_commit = master
  3619. PACKAGES += wsock
  3620. pkg_wsock_name = wsock
  3621. pkg_wsock_description = Erlang library to build WebSocket clients and servers
  3622. pkg_wsock_homepage = https://github.com/madtrick/wsock
  3623. pkg_wsock_fetch = git
  3624. pkg_wsock_repo = https://github.com/madtrick/wsock
  3625. pkg_wsock_commit = master
  3626. PACKAGES += xhttpc
  3627. pkg_xhttpc_name = xhttpc
  3628. pkg_xhttpc_description = Extensible HTTP Client for Erlang
  3629. pkg_xhttpc_homepage = https://github.com/seriyps/xhttpc
  3630. pkg_xhttpc_fetch = git
  3631. pkg_xhttpc_repo = https://github.com/seriyps/xhttpc
  3632. pkg_xhttpc_commit = master
  3633. PACKAGES += xref_runner
  3634. pkg_xref_runner_name = xref_runner
  3635. pkg_xref_runner_description = Erlang Xref Runner (inspired in rebar xref)
  3636. pkg_xref_runner_homepage = https://github.com/inaka/xref_runner
  3637. pkg_xref_runner_fetch = git
  3638. pkg_xref_runner_repo = https://github.com/inaka/xref_runner
  3639. pkg_xref_runner_commit = master
  3640. PACKAGES += yamerl
  3641. pkg_yamerl_name = yamerl
  3642. pkg_yamerl_description = YAML 1.2 parser in pure Erlang
  3643. pkg_yamerl_homepage = https://github.com/yakaz/yamerl
  3644. pkg_yamerl_fetch = git
  3645. pkg_yamerl_repo = https://github.com/yakaz/yamerl
  3646. pkg_yamerl_commit = master
  3647. PACKAGES += yamler
  3648. pkg_yamler_name = yamler
  3649. pkg_yamler_description = libyaml-based yaml loader for Erlang
  3650. pkg_yamler_homepage = https://github.com/goertzenator/yamler
  3651. pkg_yamler_fetch = git
  3652. pkg_yamler_repo = https://github.com/goertzenator/yamler
  3653. pkg_yamler_commit = master
  3654. PACKAGES += yaws
  3655. pkg_yaws_name = yaws
  3656. pkg_yaws_description = Yaws webserver
  3657. pkg_yaws_homepage = http://yaws.hyber.org
  3658. pkg_yaws_fetch = git
  3659. pkg_yaws_repo = https://github.com/klacke/yaws
  3660. pkg_yaws_commit = master
  3661. PACKAGES += zab_engine
  3662. pkg_zab_engine_name = zab_engine
  3663. pkg_zab_engine_description = zab propotocol implement by erlang
  3664. pkg_zab_engine_homepage = https://github.com/xinmingyao/zab_engine
  3665. pkg_zab_engine_fetch = git
  3666. pkg_zab_engine_repo = https://github.com/xinmingyao/zab_engine
  3667. pkg_zab_engine_commit = master
  3668. PACKAGES += zabbix_sender
  3669. pkg_zabbix_sender_name = zabbix_sender
  3670. pkg_zabbix_sender_description = Zabbix trapper for sending data to Zabbix in pure Erlang
  3671. pkg_zabbix_sender_homepage = https://github.com/stalkermn/zabbix_sender
  3672. pkg_zabbix_sender_fetch = git
  3673. pkg_zabbix_sender_repo = https://github.com/stalkermn/zabbix_sender.git
  3674. pkg_zabbix_sender_commit = master
  3675. PACKAGES += zeta
  3676. pkg_zeta_name = zeta
  3677. pkg_zeta_description = HTTP access log parser in Erlang
  3678. pkg_zeta_homepage = https://github.com/s1n4/zeta
  3679. pkg_zeta_fetch = git
  3680. pkg_zeta_repo = https://github.com/s1n4/zeta
  3681. pkg_zeta_commit = master
  3682. PACKAGES += zippers
  3683. pkg_zippers_name = zippers
  3684. pkg_zippers_description = A library for functional zipper data structures in Erlang. Read more on zippers
  3685. pkg_zippers_homepage = https://github.com/ferd/zippers
  3686. pkg_zippers_fetch = git
  3687. pkg_zippers_repo = https://github.com/ferd/zippers
  3688. pkg_zippers_commit = master
  3689. PACKAGES += zlists
  3690. pkg_zlists_name = zlists
  3691. pkg_zlists_description = Erlang lazy lists library.
  3692. pkg_zlists_homepage = https://github.com/vjache/erlang-zlists
  3693. pkg_zlists_fetch = git
  3694. pkg_zlists_repo = https://github.com/vjache/erlang-zlists
  3695. pkg_zlists_commit = master
  3696. PACKAGES += zraft_lib
  3697. pkg_zraft_lib_name = zraft_lib
  3698. pkg_zraft_lib_description = Erlang raft consensus protocol implementation
  3699. pkg_zraft_lib_homepage = https://github.com/dreyk/zraft_lib
  3700. pkg_zraft_lib_fetch = git
  3701. pkg_zraft_lib_repo = https://github.com/dreyk/zraft_lib
  3702. pkg_zraft_lib_commit = master
  3703. PACKAGES += zucchini
  3704. pkg_zucchini_name = zucchini
  3705. pkg_zucchini_description = An Erlang INI parser
  3706. pkg_zucchini_homepage = https://github.com/devinus/zucchini
  3707. pkg_zucchini_fetch = git
  3708. pkg_zucchini_repo = https://github.com/devinus/zucchini
  3709. pkg_zucchini_commit = master
  3710. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  3711. # This file is part of erlang.mk and subject to the terms of the ISC License.
  3712. .PHONY: search
  3713. define pkg_print
  3714. $(verbose) printf "%s\n" \
  3715. $(if $(call core_eq,$(1),$(pkg_$(1)_name)),,"Pkg name: $(1)") \
  3716. "App name: $(pkg_$(1)_name)" \
  3717. "Description: $(pkg_$(1)_description)" \
  3718. "Home page: $(pkg_$(1)_homepage)" \
  3719. "Fetch with: $(pkg_$(1)_fetch)" \
  3720. "Repository: $(pkg_$(1)_repo)" \
  3721. "Commit: $(pkg_$(1)_commit)" \
  3722. ""
  3723. endef
  3724. search:
  3725. ifdef q
  3726. $(foreach p,$(PACKAGES), \
  3727. $(if $(findstring $(call core_lc,$(q)),$(call core_lc,$(pkg_$(p)_name) $(pkg_$(p)_description))), \
  3728. $(call pkg_print,$(p))))
  3729. else
  3730. $(foreach p,$(PACKAGES),$(call pkg_print,$(p)))
  3731. endif
  3732. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  3733. # This file is part of erlang.mk and subject to the terms of the ISC License.
  3734. .PHONY: distclean-deps clean-tmp-deps.log
  3735. # Configuration.
  3736. ifdef OTP_DEPS
  3737. $(warning The variable OTP_DEPS is deprecated in favor of LOCAL_DEPS.)
  3738. endif
  3739. IGNORE_DEPS ?=
  3740. export IGNORE_DEPS
  3741. APPS_DIR ?= $(CURDIR)/apps
  3742. export APPS_DIR
  3743. DEPS_DIR ?= $(CURDIR)/deps
  3744. export DEPS_DIR
  3745. REBAR_DEPS_DIR = $(DEPS_DIR)
  3746. export REBAR_DEPS_DIR
  3747. REBAR_GIT ?= https://github.com/rebar/rebar
  3748. REBAR_COMMIT ?= 576e12171ab8d69b048b827b92aa65d067deea01
  3749. # External "early" plugins (see core/plugins.mk for regular plugins).
  3750. # They both use the core_dep_plugin macro.
  3751. define core_dep_plugin
  3752. ifeq ($(2),$(PROJECT))
  3753. -include $$(patsubst $(PROJECT)/%,%,$(1))
  3754. else
  3755. -include $(DEPS_DIR)/$(1)
  3756. $(DEPS_DIR)/$(1): $(DEPS_DIR)/$(2) ;
  3757. endif
  3758. endef
  3759. DEP_EARLY_PLUGINS ?=
  3760. $(foreach p,$(DEP_EARLY_PLUGINS),\
  3761. $(eval $(if $(findstring /,$p),\
  3762. $(call core_dep_plugin,$p,$(firstword $(subst /, ,$p))),\
  3763. $(call core_dep_plugin,$p/early-plugins.mk,$p))))
  3764. # Query functions.
  3765. query_fetch_method = $(if $(dep_$(1)),$(call _qfm_dep,$(word 1,$(dep_$(1)))),$(call _qfm_pkg,$(1)))
  3766. _qfm_dep = $(if $(dep_fetch_$(1)),$(1),$(if $(IS_DEP),legacy,fail))
  3767. _qfm_pkg = $(if $(pkg_$(1)_fetch),$(pkg_$(1)_fetch),fail)
  3768. query_name = $(if $(dep_$(1)),$(1),$(if $(pkg_$(1)_name),$(pkg_$(1)_name),$(1)))
  3769. query_repo = $(call _qr,$(1),$(call query_fetch_method,$(1)))
  3770. _qr = $(if $(query_repo_$(2)),$(call query_repo_$(2),$(1)),$(call dep_repo,$(1)))
  3771. query_repo_default = $(if $(dep_$(1)),$(word 2,$(dep_$(1))),$(pkg_$(1)_repo))
  3772. query_repo_git = $(patsubst git://github.com/%,https://github.com/%,$(call query_repo_default,$(1)))
  3773. query_repo_git-subfolder = $(call query_repo_git,$(1))
  3774. query_repo_git-submodule = -
  3775. query_repo_hg = $(call query_repo_default,$(1))
  3776. query_repo_svn = $(call query_repo_default,$(1))
  3777. query_repo_cp = $(call query_repo_default,$(1))
  3778. query_repo_ln = $(call query_repo_default,$(1))
  3779. query_repo_hex = https://hex.pm/packages/$(if $(word 3,$(dep_$(1))),$(word 3,$(dep_$(1))),$(1))
  3780. query_repo_fail = -
  3781. query_repo_legacy = -
  3782. query_version = $(call _qv,$(1),$(call query_fetch_method,$(1)))
  3783. _qv = $(if $(query_version_$(2)),$(call query_version_$(2),$(1)),$(call dep_commit,$(1)))
  3784. query_version_default = $(if $(dep_$(1)_commit),$(dep_$(1)_commit),$(if $(dep_$(1)),$(word 3,$(dep_$(1))),$(pkg_$(1)_commit)))
  3785. query_version_git = $(call query_version_default,$(1))
  3786. query_version_git-subfolder = $(call query_version_git,$(1))
  3787. query_version_git-submodule = -
  3788. query_version_hg = $(call query_version_default,$(1))
  3789. query_version_svn = -
  3790. query_version_cp = -
  3791. query_version_ln = -
  3792. query_version_hex = $(if $(dep_$(1)_commit),$(dep_$(1)_commit),$(if $(dep_$(1)),$(word 2,$(dep_$(1))),$(pkg_$(1)_commit)))
  3793. query_version_fail = -
  3794. query_version_legacy = -
  3795. query_extra = $(call _qe,$(1),$(call query_fetch_method,$(1)))
  3796. _qe = $(if $(query_extra_$(2)),$(call query_extra_$(2),$(1)),-)
  3797. query_extra_git = -
  3798. query_extra_git-subfolder = $(if $(dep_$(1)),subfolder=$(word 4,$(dep_$(1))),-)
  3799. query_extra_git-submodule = -
  3800. query_extra_hg = -
  3801. query_extra_svn = -
  3802. query_extra_cp = -
  3803. query_extra_ln = -
  3804. query_extra_hex = $(if $(dep_$(1)),package-name=$(word 3,$(dep_$(1))),-)
  3805. query_extra_fail = -
  3806. query_extra_legacy = -
  3807. query_absolute_path = $(addprefix $(DEPS_DIR)/,$(call query_name,$(1)))
  3808. # Deprecated legacy query functions.
  3809. dep_fetch = $(call query_fetch_method,$(1))
  3810. dep_name = $(call query_name,$(1))
  3811. dep_repo = $(call query_repo_git,$(1))
  3812. dep_commit = $(if $(dep_$(1)_commit),$(dep_$(1)_commit),$(if $(dep_$(1)),$(if $(filter hex,$(word 1,$(dep_$(1)))),$(word 2,$(dep_$(1))),$(word 3,$(dep_$(1)))),$(pkg_$(1)_commit)))
  3813. LOCAL_DEPS_DIRS = $(foreach a,$(LOCAL_DEPS),$(if $(wildcard $(APPS_DIR)/$(a)),$(APPS_DIR)/$(a)))
  3814. ALL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(foreach dep,$(filter-out $(IGNORE_DEPS),$(BUILD_DEPS) $(DEPS)),$(call dep_name,$(dep))))
  3815. # When we are calling an app directly we don't want to include it here
  3816. # otherwise it'll be treated both as an apps and a top-level project.
  3817. ALL_APPS_DIRS = $(if $(wildcard $(APPS_DIR)/),$(filter-out $(APPS_DIR),$(shell find $(APPS_DIR) -maxdepth 1 -type d)))
  3818. ifdef ROOT_DIR
  3819. ifndef IS_APP
  3820. ALL_APPS_DIRS := $(filter-out $(APPS_DIR)/$(notdir $(CURDIR)),$(ALL_APPS_DIRS))
  3821. endif
  3822. endif
  3823. ifeq ($(filter $(APPS_DIR) $(DEPS_DIR),$(subst :, ,$(ERL_LIBS))),)
  3824. ifeq ($(ERL_LIBS),)
  3825. ERL_LIBS = $(APPS_DIR):$(DEPS_DIR)
  3826. else
  3827. ERL_LIBS := $(ERL_LIBS):$(APPS_DIR):$(DEPS_DIR)
  3828. endif
  3829. endif
  3830. export ERL_LIBS
  3831. export NO_AUTOPATCH
  3832. # Verbosity.
  3833. dep_verbose_0 = @echo " DEP $1 ($(call dep_commit,$1))";
  3834. dep_verbose_2 = set -x;
  3835. dep_verbose = $(dep_verbose_$(V))
  3836. # Optimization: don't recompile deps unless truly necessary.
  3837. ifndef IS_DEP
  3838. ifneq ($(MAKELEVEL),0)
  3839. $(shell rm -f ebin/dep_built)
  3840. endif
  3841. endif
  3842. # Core targets.
  3843. ALL_APPS_DIRS_TO_BUILD = $(if $(LOCAL_DEPS_DIRS)$(IS_APP),$(LOCAL_DEPS_DIRS),$(ALL_APPS_DIRS))
  3844. apps:: $(ALL_APPS_DIRS) clean-tmp-deps.log | $(ERLANG_MK_TMP)
  3845. # Create ebin directory for all apps to make sure Erlang recognizes them
  3846. # as proper OTP applications when using -include_lib. This is a temporary
  3847. # fix, a proper fix would be to compile apps/* in the right order.
  3848. ifndef IS_APP
  3849. ifneq ($(ALL_APPS_DIRS),)
  3850. $(verbose) set -e; for dep in $(ALL_APPS_DIRS) ; do \
  3851. mkdir -p $$dep/ebin; \
  3852. done
  3853. endif
  3854. endif
  3855. # At the toplevel: if LOCAL_DEPS is defined with at least one local app, only
  3856. # compile that list of apps. Otherwise, compile everything.
  3857. # Within an app: compile all LOCAL_DEPS that are (uncompiled) local apps.
  3858. ifneq ($(ALL_APPS_DIRS_TO_BUILD),)
  3859. $(verbose) set -e; for dep in $(ALL_APPS_DIRS_TO_BUILD); do \
  3860. if grep -qs ^$$dep$$ $(ERLANG_MK_TMP)/apps.log; then \
  3861. :; \
  3862. else \
  3863. echo $$dep >> $(ERLANG_MK_TMP)/apps.log; \
  3864. $(MAKE) -C $$dep $(if $(IS_TEST),test-build-app) IS_APP=1; \
  3865. fi \
  3866. done
  3867. endif
  3868. clean-tmp-deps.log:
  3869. ifeq ($(IS_APP)$(IS_DEP),)
  3870. $(verbose) rm -f $(ERLANG_MK_TMP)/apps.log $(ERLANG_MK_TMP)/deps.log
  3871. endif
  3872. # Erlang.mk does not rebuild dependencies after they were compiled
  3873. # once. If a developer is working on the top-level project and some
  3874. # dependencies at the same time, he may want to change this behavior.
  3875. # There are two solutions:
  3876. # 1. Set `FULL=1` so that all dependencies are visited and
  3877. # recursively recompiled if necessary.
  3878. # 2. Set `FORCE_REBUILD=` to the specific list of dependencies that
  3879. # should be recompiled (instead of the whole set).
  3880. FORCE_REBUILD ?=
  3881. ifeq ($(origin FULL),undefined)
  3882. ifneq ($(strip $(force_rebuild_dep)$(FORCE_REBUILD)),)
  3883. define force_rebuild_dep
  3884. echo "$(FORCE_REBUILD)" | grep -qw "$$(basename "$1")"
  3885. endef
  3886. endif
  3887. endif
  3888. ifneq ($(SKIP_DEPS),)
  3889. deps::
  3890. else
  3891. deps:: $(ALL_DEPS_DIRS) apps clean-tmp-deps.log | $(ERLANG_MK_TMP)
  3892. ifneq ($(ALL_DEPS_DIRS),)
  3893. $(verbose) set -e; for dep in $(ALL_DEPS_DIRS); do \
  3894. if grep -qs ^$$dep$$ $(ERLANG_MK_TMP)/deps.log; then \
  3895. :; \
  3896. else \
  3897. echo $$dep >> $(ERLANG_MK_TMP)/deps.log; \
  3898. if [ -z "$(strip $(FULL))" ] $(if $(force_rebuild_dep),&& ! ($(call force_rebuild_dep,$$dep)),) && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \
  3899. :; \
  3900. elif [ -f $$dep/GNUmakefile ] || [ -f $$dep/makefile ] || [ -f $$dep/Makefile ]; then \
  3901. $(MAKE) -C $$dep IS_DEP=1; \
  3902. if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \
  3903. else \
  3904. echo "Error: No Makefile to build dependency $$dep." >&2; \
  3905. exit 2; \
  3906. fi \
  3907. fi \
  3908. done
  3909. endif
  3910. endif
  3911. # Deps related targets.
  3912. # @todo rename GNUmakefile and makefile into Makefile first, if they exist
  3913. # While Makefile file could be GNUmakefile or makefile,
  3914. # in practice only Makefile is needed so far.
  3915. define dep_autopatch
  3916. if [ -f $(DEPS_DIR)/$(1)/erlang.mk ]; then \
  3917. rm -rf $(DEPS_DIR)/$1/ebin/; \
  3918. $(call erlang,$(call dep_autopatch_appsrc.erl,$(1))); \
  3919. $(call dep_autopatch_erlang_mk,$(1)); \
  3920. elif [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
  3921. if [ -f $(DEPS_DIR)/$1/rebar.lock ]; then \
  3922. $(call dep_autopatch2,$1); \
  3923. elif [ 0 != `grep -c "include ../\w*\.mk" $(DEPS_DIR)/$(1)/Makefile` ]; then \
  3924. $(call dep_autopatch2,$(1)); \
  3925. elif [ 0 != `grep -ci "^[^#].*rebar" $(DEPS_DIR)/$(1)/Makefile` ]; then \
  3926. $(call dep_autopatch2,$(1)); \
  3927. elif [ -n "`find $(DEPS_DIR)/$(1)/ -type f -name \*.mk -not -name erlang.mk -exec grep -i "^[^#].*rebar" '{}' \;`" ]; then \
  3928. $(call dep_autopatch2,$(1)); \
  3929. fi \
  3930. else \
  3931. if [ ! -d $(DEPS_DIR)/$(1)/src/ ]; then \
  3932. $(call dep_autopatch_noop,$(1)); \
  3933. else \
  3934. $(call dep_autopatch2,$(1)); \
  3935. fi \
  3936. fi
  3937. endef
  3938. define dep_autopatch2
  3939. ! test -f $(DEPS_DIR)/$1/ebin/$1.app || \
  3940. mv -n $(DEPS_DIR)/$1/ebin/$1.app $(DEPS_DIR)/$1/src/$1.app.src; \
  3941. rm -f $(DEPS_DIR)/$1/ebin/$1.app; \
  3942. if [ -f $(DEPS_DIR)/$1/src/$1.app.src.script ]; then \
  3943. $(call erlang,$(call dep_autopatch_appsrc_script.erl,$(1))); \
  3944. fi; \
  3945. $(call erlang,$(call dep_autopatch_appsrc.erl,$(1))); \
  3946. if [ -f $(DEPS_DIR)/$(1)/rebar -o -f $(DEPS_DIR)/$(1)/rebar.config -o -f $(DEPS_DIR)/$(1)/rebar.config.script -o -f $(DEPS_DIR)/$1/rebar.lock ]; then \
  3947. $(call dep_autopatch_fetch_rebar); \
  3948. $(call dep_autopatch_rebar,$(1)); \
  3949. else \
  3950. $(call dep_autopatch_gen,$(1)); \
  3951. fi
  3952. endef
  3953. define dep_autopatch_noop
  3954. printf "noop:\n" > $(DEPS_DIR)/$(1)/Makefile
  3955. endef
  3956. # Replace "include erlang.mk" with a line that will load the parent Erlang.mk
  3957. # if given. Do it for all 3 possible Makefile file names.
  3958. ifeq ($(NO_AUTOPATCH_ERLANG_MK),)
  3959. define dep_autopatch_erlang_mk
  3960. for f in Makefile makefile GNUmakefile; do \
  3961. if [ -f $(DEPS_DIR)/$1/$$f ]; then \
  3962. sed -i.bak s/'include *erlang.mk'/'include $$(if $$(ERLANG_MK_FILENAME),$$(ERLANG_MK_FILENAME),erlang.mk)'/ $(DEPS_DIR)/$1/$$f; \
  3963. fi \
  3964. done
  3965. endef
  3966. else
  3967. define dep_autopatch_erlang_mk
  3968. :
  3969. endef
  3970. endif
  3971. define dep_autopatch_gen
  3972. printf "%s\n" \
  3973. "ERLC_OPTS = +debug_info" \
  3974. "include ../../erlang.mk" > $(DEPS_DIR)/$(1)/Makefile
  3975. endef
  3976. # We use flock/lockf when available to avoid concurrency issues.
  3977. define dep_autopatch_fetch_rebar
  3978. if command -v flock >/dev/null; then \
  3979. flock $(ERLANG_MK_TMP)/rebar.lock sh -c "$(call dep_autopatch_fetch_rebar2)"; \
  3980. elif command -v lockf >/dev/null; then \
  3981. lockf $(ERLANG_MK_TMP)/rebar.lock sh -c "$(call dep_autopatch_fetch_rebar2)"; \
  3982. else \
  3983. $(call dep_autopatch_fetch_rebar2); \
  3984. fi
  3985. endef
  3986. define dep_autopatch_fetch_rebar2
  3987. if [ ! -d $(ERLANG_MK_TMP)/rebar ]; then \
  3988. git clone -q -n -- $(REBAR_GIT) $(ERLANG_MK_TMP)/rebar; \
  3989. cd $(ERLANG_MK_TMP)/rebar; \
  3990. git checkout -q $(REBAR_COMMIT); \
  3991. ./bootstrap; \
  3992. cd -; \
  3993. fi
  3994. endef
  3995. define dep_autopatch_rebar
  3996. if [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
  3997. mv $(DEPS_DIR)/$(1)/Makefile $(DEPS_DIR)/$(1)/Makefile.orig.mk; \
  3998. fi; \
  3999. $(call erlang,$(call dep_autopatch_rebar.erl,$(1))); \
  4000. rm -f $(DEPS_DIR)/$(1)/ebin/$(1).app
  4001. endef
  4002. define dep_autopatch_rebar.erl
  4003. application:load(rebar),
  4004. application:set_env(rebar, log_level, debug),
  4005. rmemo:start(),
  4006. Conf1 = case file:consult("$(call core_native_path,$(DEPS_DIR)/$1/rebar.config)") of
  4007. {ok, Conf0} -> Conf0;
  4008. _ -> []
  4009. end,
  4010. {Conf, OsEnv} = fun() ->
  4011. case filelib:is_file("$(call core_native_path,$(DEPS_DIR)/$1/rebar.config.script)") of
  4012. false -> {Conf1, []};
  4013. true ->
  4014. Bindings0 = erl_eval:new_bindings(),
  4015. Bindings1 = erl_eval:add_binding('CONFIG', Conf1, Bindings0),
  4016. Bindings = erl_eval:add_binding('SCRIPT', "$(call core_native_path,$(DEPS_DIR)/$1/rebar.config.script)", Bindings1),
  4017. Before = os:getenv(),
  4018. {ok, Conf2} = file:script("$(call core_native_path,$(DEPS_DIR)/$1/rebar.config.script)", Bindings),
  4019. {Conf2, lists:foldl(fun(E, Acc) -> lists:delete(E, Acc) end, os:getenv(), Before)}
  4020. end
  4021. end(),
  4022. Write = fun (Text) ->
  4023. file:write_file("$(call core_native_path,$(DEPS_DIR)/$1/Makefile)", Text, [append])
  4024. end,
  4025. Escape = fun (Text) ->
  4026. re:replace(Text, "\\\\$$", "\$$$$", [global, {return, list}])
  4027. end,
  4028. Write("IGNORE_DEPS += edown eper eunit_formatters meck node_package "
  4029. "rebar_lock_deps_plugin rebar_vsn_plugin reltool_util\n"),
  4030. Write("C_SRC_DIR = /path/do/not/exist\n"),
  4031. Write("C_SRC_TYPE = rebar\n"),
  4032. Write("DRV_CFLAGS = -fPIC\nexport DRV_CFLAGS\n"),
  4033. Write(["ERLANG_ARCH = ", rebar_utils:wordsize(), "\nexport ERLANG_ARCH\n"]),
  4034. ToList = fun
  4035. (V) when is_atom(V) -> atom_to_list(V);
  4036. (V) when is_list(V) -> "'\\"" ++ V ++ "\\"'"
  4037. end,
  4038. fun() ->
  4039. Write("ERLC_OPTS = +debug_info\nexport ERLC_OPTS\n"),
  4040. case lists:keyfind(erl_opts, 1, Conf) of
  4041. false -> ok;
  4042. {_, ErlOpts} ->
  4043. lists:foreach(fun
  4044. ({d, D}) ->
  4045. Write("ERLC_OPTS += -D" ++ ToList(D) ++ "=1\n");
  4046. ({d, DKey, DVal}) ->
  4047. Write("ERLC_OPTS += -D" ++ ToList(DKey) ++ "=" ++ ToList(DVal) ++ "\n");
  4048. ({i, I}) ->
  4049. Write(["ERLC_OPTS += -I ", I, "\n"]);
  4050. ({platform_define, Regex, D}) ->
  4051. case rebar_utils:is_arch(Regex) of
  4052. true -> Write("ERLC_OPTS += -D" ++ ToList(D) ++ "=1\n");
  4053. false -> ok
  4054. end;
  4055. ({parse_transform, PT}) ->
  4056. Write("ERLC_OPTS += +'{parse_transform, " ++ ToList(PT) ++ "}'\n");
  4057. (_) -> ok
  4058. end, ErlOpts)
  4059. end,
  4060. Write("\n")
  4061. end(),
  4062. GetHexVsn = fun(N, NP) ->
  4063. case file:consult("$(call core_native_path,$(DEPS_DIR)/$1/rebar.lock)") of
  4064. {ok, Lock} ->
  4065. io:format("~p~n", [Lock]),
  4066. LockPkgs = case lists:keyfind("1.2.0", 1, Lock) of
  4067. {_, LP} ->
  4068. LP;
  4069. _ ->
  4070. case lists:keyfind("1.1.0", 1, Lock) of
  4071. {_, LP} ->
  4072. LP;
  4073. _ ->
  4074. false
  4075. end
  4076. end,
  4077. if
  4078. is_list(LockPkgs) ->
  4079. io:format("~p~n", [LockPkgs]),
  4080. case lists:keyfind(atom_to_binary(N, latin1), 1, LockPkgs) of
  4081. {_, {pkg, _, Vsn}, _} ->
  4082. io:format("~p~n", [Vsn]),
  4083. {N, {hex, NP, binary_to_list(Vsn)}};
  4084. _ ->
  4085. false
  4086. end;
  4087. true ->
  4088. false
  4089. end;
  4090. _ ->
  4091. false
  4092. end
  4093. end,
  4094. SemVsn = fun
  4095. ("~>" ++ S0) ->
  4096. S = case S0 of
  4097. " " ++ S1 -> S1;
  4098. _ -> S0
  4099. end,
  4100. case length([ok || $$. <- S]) of
  4101. 0 -> S ++ ".0.0";
  4102. 1 -> S ++ ".0";
  4103. _ -> S
  4104. end;
  4105. (S) -> S
  4106. end,
  4107. fun() ->
  4108. File = case lists:keyfind(deps, 1, Conf) of
  4109. false -> [];
  4110. {_, Deps} ->
  4111. [begin case case Dep of
  4112. N when is_atom(N) -> GetHexVsn(N, N);
  4113. {N, S} when is_atom(N), is_list(S) -> {N, {hex, N, SemVsn(S)}};
  4114. {N, {pkg, NP}} when is_atom(N) -> GetHexVsn(N, NP);
  4115. {N, S, {pkg, NP}} -> {N, {hex, NP, S}};
  4116. {N, S} when is_tuple(S) -> {N, S};
  4117. {N, _, S} -> {N, S};
  4118. {N, _, S, _} -> {N, S};
  4119. _ -> false
  4120. end of
  4121. false -> ok;
  4122. {Name, Source} ->
  4123. {Method, Repo, Commit} = case Source of
  4124. {hex, NPV, V} -> {hex, V, NPV};
  4125. {git, R} -> {git, R, master};
  4126. {M, R, {branch, C}} -> {M, R, C};
  4127. {M, R, {ref, C}} -> {M, R, C};
  4128. {M, R, {tag, C}} -> {M, R, C};
  4129. {M, R, C} -> {M, R, C}
  4130. end,
  4131. Write(io_lib:format("DEPS += ~s\ndep_~s = ~s ~s ~s~n", [Name, Name, Method, Repo, Commit]))
  4132. end end || Dep <- Deps]
  4133. end
  4134. end(),
  4135. fun() ->
  4136. case lists:keyfind(erl_first_files, 1, Conf) of
  4137. false -> ok;
  4138. {_, Files} ->
  4139. Names = [[" ", case lists:reverse(F) of
  4140. "lre." ++ Elif -> lists:reverse(Elif);
  4141. "lrx." ++ Elif -> lists:reverse(Elif);
  4142. "lry." ++ Elif -> lists:reverse(Elif);
  4143. Elif -> lists:reverse(Elif)
  4144. end] || "src/" ++ F <- Files],
  4145. Write(io_lib:format("COMPILE_FIRST +=~s\n", [Names]))
  4146. end
  4147. end(),
  4148. Write("\n\nrebar_dep: preprocess pre-deps deps pre-app app\n"),
  4149. Write("\npreprocess::\n"),
  4150. Write("\npre-deps::\n"),
  4151. Write("\npre-app::\n"),
  4152. PatchHook = fun(Cmd) ->
  4153. Cmd2 = re:replace(Cmd, "^([g]?make)(.*)( -C.*)", "\\\\1\\\\3\\\\2", [{return, list}]),
  4154. case Cmd2 of
  4155. "make -C" ++ Cmd1 -> "$$\(MAKE) -C" ++ Escape(Cmd1);
  4156. "gmake -C" ++ Cmd1 -> "$$\(MAKE) -C" ++ Escape(Cmd1);
  4157. "make " ++ Cmd1 -> "$$\(MAKE) -f Makefile.orig.mk " ++ Escape(Cmd1);
  4158. "gmake " ++ Cmd1 -> "$$\(MAKE) -f Makefile.orig.mk " ++ Escape(Cmd1);
  4159. _ -> Escape(Cmd)
  4160. end
  4161. end,
  4162. fun() ->
  4163. case lists:keyfind(pre_hooks, 1, Conf) of
  4164. false -> ok;
  4165. {_, Hooks} ->
  4166. [case H of
  4167. {'get-deps', Cmd} ->
  4168. Write("\npre-deps::\n\t" ++ PatchHook(Cmd) ++ "\n");
  4169. {compile, Cmd} ->
  4170. Write("\npre-app::\n\tCC=$$\(CC) " ++ PatchHook(Cmd) ++ "\n");
  4171. {Regex, compile, Cmd} ->
  4172. case rebar_utils:is_arch(Regex) of
  4173. true -> Write("\npre-app::\n\tCC=$$\(CC) " ++ PatchHook(Cmd) ++ "\n");
  4174. false -> ok
  4175. end;
  4176. _ -> ok
  4177. end || H <- Hooks]
  4178. end
  4179. end(),
  4180. ShellToMk = fun(V0) ->
  4181. V1 = re:replace(V0, "[$$][(]", "$$\(shell ", [global]),
  4182. V = re:replace(V1, "([$$])(?![(])(\\\\w*)", "\\\\1(\\\\2)", [global]),
  4183. re:replace(V, "-Werror\\\\b", "", [{return, list}, global])
  4184. end,
  4185. PortSpecs = fun() ->
  4186. case lists:keyfind(port_specs, 1, Conf) of
  4187. false ->
  4188. case filelib:is_dir("$(call core_native_path,$(DEPS_DIR)/$1/c_src)") of
  4189. false -> [];
  4190. true ->
  4191. [{"priv/" ++ proplists:get_value(so_name, Conf, "$(1)_drv.so"),
  4192. proplists:get_value(port_sources, Conf, ["c_src/*.c"]), []}]
  4193. end;
  4194. {_, Specs} ->
  4195. lists:flatten([case S of
  4196. {Output, Input} -> {ShellToMk(Output), Input, []};
  4197. {Regex, Output, Input} ->
  4198. case rebar_utils:is_arch(Regex) of
  4199. true -> {ShellToMk(Output), Input, []};
  4200. false -> []
  4201. end;
  4202. {Regex, Output, Input, [{env, Env}]} ->
  4203. case rebar_utils:is_arch(Regex) of
  4204. true -> {ShellToMk(Output), Input, Env};
  4205. false -> []
  4206. end
  4207. end || S <- Specs])
  4208. end
  4209. end(),
  4210. PortSpecWrite = fun (Text) ->
  4211. file:write_file("$(call core_native_path,$(DEPS_DIR)/$1/c_src/Makefile.erlang.mk)", Text, [append])
  4212. end,
  4213. case PortSpecs of
  4214. [] -> ok;
  4215. _ ->
  4216. Write("\npre-app::\n\t@$$\(MAKE) --no-print-directory -f c_src/Makefile.erlang.mk\n"),
  4217. PortSpecWrite(io_lib:format("ERL_CFLAGS ?= -finline-functions -Wall -fPIC -I \\"~s/erts-~s/include\\" -I \\"~s\\"\n",
  4218. [code:root_dir(), erlang:system_info(version), code:lib_dir(erl_interface, include)])),
  4219. PortSpecWrite(io_lib:format("ERL_LDFLAGS ?= -L \\"~s\\" -lei\n",
  4220. [code:lib_dir(erl_interface, lib)])),
  4221. [PortSpecWrite(["\n", E, "\n"]) || E <- OsEnv],
  4222. FilterEnv = fun(Env) ->
  4223. lists:flatten([case E of
  4224. {_, _} -> E;
  4225. {Regex, K, V} ->
  4226. case rebar_utils:is_arch(Regex) of
  4227. true -> {K, V};
  4228. false -> []
  4229. end
  4230. end || E <- Env])
  4231. end,
  4232. MergeEnv = fun(Env) ->
  4233. lists:foldl(fun ({K, V}, Acc) ->
  4234. case lists:keyfind(K, 1, Acc) of
  4235. false -> [{K, rebar_utils:expand_env_variable(V, K, "")}|Acc];
  4236. {_, V0} -> [{K, rebar_utils:expand_env_variable(V, K, V0)}|Acc]
  4237. end
  4238. end, [], Env)
  4239. end,
  4240. PortEnv = case lists:keyfind(port_env, 1, Conf) of
  4241. false -> [];
  4242. {_, PortEnv0} -> FilterEnv(PortEnv0)
  4243. end,
  4244. PortSpec = fun ({Output, Input0, Env}) ->
  4245. filelib:ensure_dir("$(call core_native_path,$(DEPS_DIR)/$1/)" ++ Output),
  4246. Input = [[" ", I] || I <- Input0],
  4247. PortSpecWrite([
  4248. [["\n", K, " = ", ShellToMk(V)] || {K, V} <- lists:reverse(MergeEnv(PortEnv))],
  4249. case $(PLATFORM) of
  4250. darwin -> "\n\nLDFLAGS += -flat_namespace -undefined suppress";
  4251. _ -> ""
  4252. end,
  4253. "\n\nall:: ", Output, "\n\t@:\n\n",
  4254. "%.o: %.c\n\t$$\(CC) -c -o $$\@ $$\< $$\(CFLAGS) $$\(ERL_CFLAGS) $$\(DRV_CFLAGS) $$\(EXE_CFLAGS)\n\n",
  4255. "%.o: %.C\n\t$$\(CXX) -c -o $$\@ $$\< $$\(CXXFLAGS) $$\(ERL_CFLAGS) $$\(DRV_CFLAGS) $$\(EXE_CFLAGS)\n\n",
  4256. "%.o: %.cc\n\t$$\(CXX) -c -o $$\@ $$\< $$\(CXXFLAGS) $$\(ERL_CFLAGS) $$\(DRV_CFLAGS) $$\(EXE_CFLAGS)\n\n",
  4257. "%.o: %.cpp\n\t$$\(CXX) -c -o $$\@ $$\< $$\(CXXFLAGS) $$\(ERL_CFLAGS) $$\(DRV_CFLAGS) $$\(EXE_CFLAGS)\n\n",
  4258. [[Output, ": ", K, " += ", ShellToMk(V), "\n"] || {K, V} <- lists:reverse(MergeEnv(FilterEnv(Env)))],
  4259. Output, ": $$\(foreach ext,.c .C .cc .cpp,",
  4260. "$$\(patsubst %$$\(ext),%.o,$$\(filter %$$\(ext),$$\(wildcard", Input, "))))\n",
  4261. "\t$$\(CC) -o $$\@ $$\? $$\(LDFLAGS) $$\(ERL_LDFLAGS) $$\(DRV_LDFLAGS) $$\(EXE_LDFLAGS)",
  4262. case {filename:extension(Output), $(PLATFORM)} of
  4263. {[], _} -> "\n";
  4264. {_, darwin} -> "\n";
  4265. _ -> " -shared\n"
  4266. end])
  4267. end,
  4268. [PortSpec(S) || S <- PortSpecs]
  4269. end,
  4270. fun() ->
  4271. case lists:keyfind(plugins, 1, Conf) of
  4272. false -> ok;
  4273. {_, Plugins0} ->
  4274. Plugins = [P || P <- Plugins0, is_tuple(P)],
  4275. case lists:keyfind('lfe-compile', 1, Plugins) of
  4276. false -> ok;
  4277. _ -> Write("\nBUILD_DEPS = lfe lfe.mk\ndep_lfe.mk = git https://github.com/ninenines/lfe.mk master\nDEP_PLUGINS = lfe.mk\n")
  4278. end
  4279. end
  4280. end(),
  4281. Write("\ninclude $$\(if $$\(ERLANG_MK_FILENAME),$$\(ERLANG_MK_FILENAME),erlang.mk)"),
  4282. RunPlugin = fun(Plugin, Step) ->
  4283. case erlang:function_exported(Plugin, Step, 2) of
  4284. false -> ok;
  4285. true ->
  4286. c:cd("$(call core_native_path,$(DEPS_DIR)/$1/)"),
  4287. Ret = Plugin:Step({config, "", Conf, dict:new(), dict:new(), dict:new(),
  4288. dict:store(base_dir, "", dict:new())}, undefined),
  4289. io:format("rebar plugin ~p step ~p ret ~p~n", [Plugin, Step, Ret])
  4290. end
  4291. end,
  4292. fun() ->
  4293. case lists:keyfind(plugins, 1, Conf) of
  4294. false -> ok;
  4295. {_, Plugins0} ->
  4296. Plugins = [P || P <- Plugins0, is_atom(P)],
  4297. [begin
  4298. case lists:keyfind(deps, 1, Conf) of
  4299. false -> ok;
  4300. {_, Deps} ->
  4301. case lists:keyfind(P, 1, Deps) of
  4302. false -> ok;
  4303. _ ->
  4304. Path = "$(call core_native_path,$(DEPS_DIR)/)" ++ atom_to_list(P),
  4305. io:format("~s", [os:cmd("$(MAKE) -C $(call core_native_path,$(DEPS_DIR)/$1) " ++ Path)]),
  4306. io:format("~s", [os:cmd("$(MAKE) -C " ++ Path ++ " IS_DEP=1")]),
  4307. code:add_patha(Path ++ "/ebin")
  4308. end
  4309. end
  4310. end || P <- Plugins],
  4311. [case code:load_file(P) of
  4312. {module, P} -> ok;
  4313. _ ->
  4314. case lists:keyfind(plugin_dir, 1, Conf) of
  4315. false -> ok;
  4316. {_, PluginsDir} ->
  4317. ErlFile = "$(call core_native_path,$(DEPS_DIR)/$1/)" ++ PluginsDir ++ "/" ++ atom_to_list(P) ++ ".erl",
  4318. {ok, P, Bin} = compile:file(ErlFile, [binary]),
  4319. {module, P} = code:load_binary(P, ErlFile, Bin)
  4320. end
  4321. end || P <- Plugins],
  4322. [RunPlugin(P, preprocess) || P <- Plugins],
  4323. [RunPlugin(P, pre_compile) || P <- Plugins],
  4324. [RunPlugin(P, compile) || P <- Plugins]
  4325. end
  4326. end(),
  4327. halt()
  4328. endef
  4329. define dep_autopatch_appsrc_script.erl
  4330. AppSrc = "$(call core_native_path,$(DEPS_DIR)/$1/src/$1.app.src)",
  4331. AppSrcScript = AppSrc ++ ".script",
  4332. Conf1 = case file:consult(AppSrc) of
  4333. {ok, Conf0} -> Conf0;
  4334. {error, enoent} -> []
  4335. end,
  4336. Bindings0 = erl_eval:new_bindings(),
  4337. Bindings1 = erl_eval:add_binding('CONFIG', Conf1, Bindings0),
  4338. Bindings = erl_eval:add_binding('SCRIPT', AppSrcScript, Bindings1),
  4339. Conf = case file:script(AppSrcScript, Bindings) of
  4340. {ok, [C]} -> C;
  4341. {ok, C} -> C
  4342. end,
  4343. ok = file:write_file(AppSrc, io_lib:format("~p.~n", [Conf])),
  4344. halt()
  4345. endef
  4346. define dep_autopatch_appsrc.erl
  4347. AppSrcOut = "$(call core_native_path,$(DEPS_DIR)/$1/src/$1.app.src)",
  4348. AppSrcIn = case filelib:is_regular(AppSrcOut) of false -> "$(call core_native_path,$(DEPS_DIR)/$1/ebin/$1.app)"; true -> AppSrcOut end,
  4349. case filelib:is_regular(AppSrcIn) of
  4350. false -> ok;
  4351. true ->
  4352. {ok, [{application, $(1), L0}]} = file:consult(AppSrcIn),
  4353. L1 = lists:keystore(modules, 1, L0, {modules, []}),
  4354. L2 = case lists:keyfind(vsn, 1, L1) of
  4355. {_, git} -> lists:keyreplace(vsn, 1, L1, {vsn, lists:droplast(os:cmd("git -C $(DEPS_DIR)/$1 describe --dirty --tags --always"))});
  4356. {_, {cmd, _}} -> lists:keyreplace(vsn, 1, L1, {vsn, "cmd"});
  4357. _ -> L1
  4358. end,
  4359. L3 = case lists:keyfind(registered, 1, L2) of false -> [{registered, []}|L2]; _ -> L2 end,
  4360. ok = file:write_file(AppSrcOut, io_lib:format("~p.~n", [{application, $(1), L3}])),
  4361. case AppSrcOut of AppSrcIn -> ok; _ -> ok = file:delete(AppSrcIn) end
  4362. end,
  4363. halt()
  4364. endef
  4365. define dep_fetch_git
  4366. git clone -q -n -- $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1)); \
  4367. cd $(DEPS_DIR)/$(call dep_name,$(1)) && git checkout -q $(call dep_commit,$(1));
  4368. endef
  4369. define dep_fetch_git-subfolder
  4370. mkdir -p $(ERLANG_MK_TMP)/git-subfolder; \
  4371. git clone -q -n -- $(call dep_repo,$1) \
  4372. $(ERLANG_MK_TMP)/git-subfolder/$(call dep_name,$1); \
  4373. cd $(ERLANG_MK_TMP)/git-subfolder/$(call dep_name,$1) \
  4374. && git checkout -q $(call dep_commit,$1); \
  4375. ln -s $(ERLANG_MK_TMP)/git-subfolder/$(call dep_name,$1)/$(word 4,$(dep_$(1))) \
  4376. $(DEPS_DIR)/$(call dep_name,$1);
  4377. endef
  4378. define dep_fetch_git-submodule
  4379. git submodule update --init -- $(DEPS_DIR)/$1;
  4380. endef
  4381. define dep_fetch_hg
  4382. hg clone -q -U $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1)); \
  4383. cd $(DEPS_DIR)/$(call dep_name,$(1)) && hg update -q $(call dep_commit,$(1));
  4384. endef
  4385. define dep_fetch_svn
  4386. svn checkout -q $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1));
  4387. endef
  4388. define dep_fetch_cp
  4389. cp -R $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1));
  4390. endef
  4391. define dep_fetch_ln
  4392. ln -s $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1));
  4393. endef
  4394. # Hex only has a package version. No need to look in the Erlang.mk packages.
  4395. define dep_fetch_hex
  4396. mkdir -p $(ERLANG_MK_TMP)/hex $(DEPS_DIR)/$1; \
  4397. $(call core_http_get,$(ERLANG_MK_TMP)/hex/$1.tar,\
  4398. https://repo.hex.pm/tarballs/$(if $(word 3,$(dep_$1)),$(word 3,$(dep_$1)),$1)-$(strip $(word 2,$(dep_$1))).tar); \
  4399. tar -xOf $(ERLANG_MK_TMP)/hex/$1.tar contents.tar.gz | tar -C $(DEPS_DIR)/$1 -xzf -;
  4400. endef
  4401. define dep_fetch_fail
  4402. echo "Error: Unknown or invalid dependency: $(1)." >&2; \
  4403. exit 78;
  4404. endef
  4405. # Kept for compatibility purposes with older Erlang.mk configuration.
  4406. define dep_fetch_legacy
  4407. $(warning WARNING: '$(1)' dependency configuration uses deprecated format.) \
  4408. git clone -q -n -- $(word 1,$(dep_$(1))) $(DEPS_DIR)/$(1); \
  4409. cd $(DEPS_DIR)/$(1) && git checkout -q $(if $(word 2,$(dep_$(1))),$(word 2,$(dep_$(1))),master);
  4410. endef
  4411. define dep_target
  4412. $(DEPS_DIR)/$(call dep_name,$1): | $(ERLANG_MK_TMP)
  4413. $(eval DEP_NAME := $(call dep_name,$1))
  4414. $(eval DEP_STR := $(if $(filter $1,$(DEP_NAME)),$1,"$1 ($(DEP_NAME))"))
  4415. $(verbose) if test -d $(APPS_DIR)/$(DEP_NAME); then \
  4416. echo "Error: Dependency" $(DEP_STR) "conflicts with application found in $(APPS_DIR)/$(DEP_NAME)." >&2; \
  4417. exit 17; \
  4418. fi
  4419. $(verbose) mkdir -p $(DEPS_DIR)
  4420. $(dep_verbose) $(call dep_fetch_$(strip $(call dep_fetch,$(1))),$(1))
  4421. $(verbose) if [ -f $(DEPS_DIR)/$(1)/configure.ac -o -f $(DEPS_DIR)/$(1)/configure.in ] \
  4422. && [ ! -f $(DEPS_DIR)/$(1)/configure ]; then \
  4423. echo " AUTO " $(DEP_STR); \
  4424. cd $(DEPS_DIR)/$(1) && autoreconf -Wall -vif -I m4; \
  4425. fi
  4426. - $(verbose) if [ -f $(DEPS_DIR)/$(DEP_NAME)/configure ]; then \
  4427. echo " CONF " $(DEP_STR); \
  4428. cd $(DEPS_DIR)/$(DEP_NAME) && ./configure; \
  4429. fi
  4430. ifeq ($(filter $(1),$(NO_AUTOPATCH)),)
  4431. $(verbose) $$(MAKE) --no-print-directory autopatch-$(DEP_NAME)
  4432. endif
  4433. .PHONY: autopatch-$(call dep_name,$1)
  4434. autopatch-$(call dep_name,$1)::
  4435. $(verbose) if [ "$(1)" = "amqp_client" -a "$(RABBITMQ_CLIENT_PATCH)" ]; then \
  4436. if [ ! -d $(DEPS_DIR)/rabbitmq-codegen ]; then \
  4437. echo " PATCH Downloading rabbitmq-codegen"; \
  4438. git clone https://github.com/rabbitmq/rabbitmq-codegen.git $(DEPS_DIR)/rabbitmq-codegen; \
  4439. fi; \
  4440. if [ ! -d $(DEPS_DIR)/rabbitmq-server ]; then \
  4441. echo " PATCH Downloading rabbitmq-server"; \
  4442. git clone https://github.com/rabbitmq/rabbitmq-server.git $(DEPS_DIR)/rabbitmq-server; \
  4443. fi; \
  4444. ln -s $(DEPS_DIR)/amqp_client/deps/rabbit_common-0.0.0 $(DEPS_DIR)/rabbit_common; \
  4445. elif [ "$(1)" = "rabbit" -a "$(RABBITMQ_SERVER_PATCH)" ]; then \
  4446. if [ ! -d $(DEPS_DIR)/rabbitmq-codegen ]; then \
  4447. echo " PATCH Downloading rabbitmq-codegen"; \
  4448. git clone https://github.com/rabbitmq/rabbitmq-codegen.git $(DEPS_DIR)/rabbitmq-codegen; \
  4449. fi \
  4450. elif [ "$1" = "elixir" -a "$(ELIXIR_PATCH)" ]; then \
  4451. ln -s lib/elixir/ebin $(DEPS_DIR)/elixir/; \
  4452. else \
  4453. $$(call dep_autopatch,$(call dep_name,$1)) \
  4454. fi
  4455. endef
  4456. $(foreach dep,$(BUILD_DEPS) $(DEPS),$(eval $(call dep_target,$(dep))))
  4457. ifndef IS_APP
  4458. clean:: clean-apps
  4459. clean-apps:
  4460. $(verbose) set -e; for dep in $(ALL_APPS_DIRS) ; do \
  4461. $(MAKE) -C $$dep clean IS_APP=1; \
  4462. done
  4463. distclean:: distclean-apps
  4464. distclean-apps:
  4465. $(verbose) set -e; for dep in $(ALL_APPS_DIRS) ; do \
  4466. $(MAKE) -C $$dep distclean IS_APP=1; \
  4467. done
  4468. endif
  4469. ifndef SKIP_DEPS
  4470. distclean:: distclean-deps
  4471. distclean-deps:
  4472. $(gen_verbose) rm -rf $(DEPS_DIR)
  4473. endif
  4474. # Forward-declare variables used in core/deps-tools.mk. This is required
  4475. # in case plugins use them.
  4476. ERLANG_MK_RECURSIVE_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-deps-list.log
  4477. ERLANG_MK_RECURSIVE_DOC_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-doc-deps-list.log
  4478. ERLANG_MK_RECURSIVE_REL_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-rel-deps-list.log
  4479. ERLANG_MK_RECURSIVE_TEST_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-test-deps-list.log
  4480. ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-shell-deps-list.log
  4481. ERLANG_MK_QUERY_DEPS_FILE = $(ERLANG_MK_TMP)/query-deps.log
  4482. ERLANG_MK_QUERY_DOC_DEPS_FILE = $(ERLANG_MK_TMP)/query-doc-deps.log
  4483. ERLANG_MK_QUERY_REL_DEPS_FILE = $(ERLANG_MK_TMP)/query-rel-deps.log
  4484. ERLANG_MK_QUERY_TEST_DEPS_FILE = $(ERLANG_MK_TMP)/query-test-deps.log
  4485. ERLANG_MK_QUERY_SHELL_DEPS_FILE = $(ERLANG_MK_TMP)/query-shell-deps.log
  4486. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  4487. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4488. .PHONY: clean-app
  4489. # Configuration.
  4490. ERLC_OPTS ?= -Werror +debug_info +warn_export_vars +warn_shadow_vars \
  4491. +warn_obsolete_guard # +bin_opt_info +warn_export_all +warn_missing_spec
  4492. COMPILE_FIRST ?=
  4493. COMPILE_FIRST_PATHS = $(addprefix src/,$(addsuffix .erl,$(COMPILE_FIRST)))
  4494. ERLC_EXCLUDE ?=
  4495. ERLC_EXCLUDE_PATHS = $(addprefix src/,$(addsuffix .erl,$(ERLC_EXCLUDE)))
  4496. ERLC_ASN1_OPTS ?=
  4497. ERLC_MIB_OPTS ?=
  4498. COMPILE_MIB_FIRST ?=
  4499. COMPILE_MIB_FIRST_PATHS = $(addprefix mibs/,$(addsuffix .mib,$(COMPILE_MIB_FIRST)))
  4500. # Verbosity.
  4501. app_verbose_0 = @echo " APP " $(PROJECT);
  4502. app_verbose_2 = set -x;
  4503. app_verbose = $(app_verbose_$(V))
  4504. appsrc_verbose_0 = @echo " APP " $(PROJECT).app.src;
  4505. appsrc_verbose_2 = set -x;
  4506. appsrc_verbose = $(appsrc_verbose_$(V))
  4507. makedep_verbose_0 = @echo " DEPEND" $(PROJECT).d;
  4508. makedep_verbose_2 = set -x;
  4509. makedep_verbose = $(makedep_verbose_$(V))
  4510. erlc_verbose_0 = @echo " ERLC " $(filter-out $(patsubst %,%.erl,$(ERLC_EXCLUDE)),\
  4511. $(filter %.erl %.core,$(?F)));
  4512. erlc_verbose_2 = set -x;
  4513. erlc_verbose = $(erlc_verbose_$(V))
  4514. xyrl_verbose_0 = @echo " XYRL " $(filter %.xrl %.yrl,$(?F));
  4515. xyrl_verbose_2 = set -x;
  4516. xyrl_verbose = $(xyrl_verbose_$(V))
  4517. asn1_verbose_0 = @echo " ASN1 " $(filter %.asn1,$(?F));
  4518. asn1_verbose_2 = set -x;
  4519. asn1_verbose = $(asn1_verbose_$(V))
  4520. mib_verbose_0 = @echo " MIB " $(filter %.bin %.mib,$(?F));
  4521. mib_verbose_2 = set -x;
  4522. mib_verbose = $(mib_verbose_$(V))
  4523. ifneq ($(wildcard src/),)
  4524. # Targets.
  4525. app:: $(if $(wildcard ebin/test),clean) deps
  4526. $(verbose) $(MAKE) --no-print-directory $(PROJECT).d
  4527. $(verbose) $(MAKE) --no-print-directory app-build
  4528. ifeq ($(wildcard src/$(PROJECT_MOD).erl),)
  4529. define app_file
  4530. {application, '$(PROJECT)', [
  4531. {description, "$(PROJECT_DESCRIPTION)"},
  4532. {vsn, "$(PROJECT_VERSION)"},$(if $(IS_DEP),
  4533. {id$(comma)$(space)"$(1)"}$(comma))
  4534. {modules, [$(call comma_list,$(2))]},
  4535. {registered, []},
  4536. {applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(foreach dep,$(DEPS),$(call dep_name,$(dep))))]},
  4537. {env, $(subst \,\\,$(PROJECT_ENV))}$(if $(findstring {,$(PROJECT_APP_EXTRA_KEYS)),$(comma)$(newline)$(tab)$(subst \,\\,$(PROJECT_APP_EXTRA_KEYS)),)
  4538. ]}.
  4539. endef
  4540. else
  4541. define app_file
  4542. {application, '$(PROJECT)', [
  4543. {description, "$(PROJECT_DESCRIPTION)"},
  4544. {vsn, "$(PROJECT_VERSION)"},$(if $(IS_DEP),
  4545. {id$(comma)$(space)"$(1)"}$(comma))
  4546. {modules, [$(call comma_list,$(2))]},
  4547. {registered, [$(call comma_list,$(PROJECT)_sup $(PROJECT_REGISTERED))]},
  4548. {applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(foreach dep,$(DEPS),$(call dep_name,$(dep))))]},
  4549. {mod, {$(PROJECT_MOD), []}},
  4550. {env, $(subst \,\\,$(PROJECT_ENV))}$(if $(findstring {,$(PROJECT_APP_EXTRA_KEYS)),$(comma)$(newline)$(tab)$(subst \,\\,$(PROJECT_APP_EXTRA_KEYS)),)
  4551. ]}.
  4552. endef
  4553. endif
  4554. app-build: ebin/$(PROJECT).app
  4555. $(verbose) :
  4556. # Source files.
  4557. ALL_SRC_FILES := $(sort $(call core_find,src/,*))
  4558. ERL_FILES := $(filter %.erl,$(ALL_SRC_FILES))
  4559. CORE_FILES := $(filter %.core,$(ALL_SRC_FILES))
  4560. # ASN.1 files.
  4561. ifneq ($(wildcard asn1/),)
  4562. ASN1_FILES = $(sort $(call core_find,asn1/,*.asn1))
  4563. ERL_FILES += $(addprefix src/,$(patsubst %.asn1,%.erl,$(notdir $(ASN1_FILES))))
  4564. define compile_asn1
  4565. $(verbose) mkdir -p include/
  4566. $(asn1_verbose) erlc -v -I include/ -o asn1/ +noobj $(ERLC_ASN1_OPTS) $(1)
  4567. $(verbose) mv asn1/*.erl src/
  4568. -$(verbose) mv asn1/*.hrl include/
  4569. $(verbose) mv asn1/*.asn1db include/
  4570. endef
  4571. $(PROJECT).d:: $(ASN1_FILES)
  4572. $(if $(strip $?),$(call compile_asn1,$?))
  4573. endif
  4574. # SNMP MIB files.
  4575. ifneq ($(wildcard mibs/),)
  4576. MIB_FILES = $(sort $(call core_find,mibs/,*.mib))
  4577. $(PROJECT).d:: $(COMPILE_MIB_FIRST_PATHS) $(MIB_FILES)
  4578. $(verbose) mkdir -p include/ priv/mibs/
  4579. $(mib_verbose) erlc -v $(ERLC_MIB_OPTS) -o priv/mibs/ -I priv/mibs/ $?
  4580. $(mib_verbose) erlc -o include/ -- $(addprefix priv/mibs/,$(patsubst %.mib,%.bin,$(notdir $?)))
  4581. endif
  4582. # Leex and Yecc files.
  4583. XRL_FILES := $(filter %.xrl,$(ALL_SRC_FILES))
  4584. XRL_ERL_FILES = $(addprefix src/,$(patsubst %.xrl,%.erl,$(notdir $(XRL_FILES))))
  4585. ERL_FILES += $(XRL_ERL_FILES)
  4586. YRL_FILES := $(filter %.yrl,$(ALL_SRC_FILES))
  4587. YRL_ERL_FILES = $(addprefix src/,$(patsubst %.yrl,%.erl,$(notdir $(YRL_FILES))))
  4588. ERL_FILES += $(YRL_ERL_FILES)
  4589. $(PROJECT).d:: $(XRL_FILES) $(YRL_FILES)
  4590. $(if $(strip $?),$(xyrl_verbose) erlc -v -o src/ $(YRL_ERLC_OPTS) $?)
  4591. # Erlang and Core Erlang files.
  4592. define makedep.erl
  4593. E = ets:new(makedep, [bag]),
  4594. G = digraph:new([acyclic]),
  4595. ErlFiles = lists:usort(string:tokens("$(ERL_FILES)", " ")),
  4596. DepsDir = "$(call core_native_path,$(DEPS_DIR))",
  4597. AppsDir = "$(call core_native_path,$(APPS_DIR))",
  4598. DepsDirsSrc = "$(if $(wildcard $(DEPS_DIR)/*/src), $(call core_native_path,$(wildcard $(DEPS_DIR)/*/src)))",
  4599. DepsDirsInc = "$(if $(wildcard $(DEPS_DIR)/*/include), $(call core_native_path,$(wildcard $(DEPS_DIR)/*/include)))",
  4600. AppsDirsSrc = "$(if $(wildcard $(APPS_DIR)/*/src), $(call core_native_path,$(wildcard $(APPS_DIR)/*/src)))",
  4601. AppsDirsInc = "$(if $(wildcard $(APPS_DIR)/*/include), $(call core_native_path,$(wildcard $(APPS_DIR)/*/include)))",
  4602. DepsDirs = lists:usort(string:tokens(DepsDirsSrc++DepsDirsInc, " ")),
  4603. AppsDirs = lists:usort(string:tokens(AppsDirsSrc++AppsDirsInc, " ")),
  4604. Modules = [{list_to_atom(filename:basename(F, ".erl")), F} || F <- ErlFiles],
  4605. Add = fun (Mod, Dep) ->
  4606. case lists:keyfind(Dep, 1, Modules) of
  4607. false -> ok;
  4608. {_, DepFile} ->
  4609. {_, ModFile} = lists:keyfind(Mod, 1, Modules),
  4610. ets:insert(E, {ModFile, DepFile}),
  4611. digraph:add_vertex(G, Mod),
  4612. digraph:add_vertex(G, Dep),
  4613. digraph:add_edge(G, Mod, Dep)
  4614. end
  4615. end,
  4616. AddHd = fun (F, Mod, DepFile) ->
  4617. case file:open(DepFile, [read]) of
  4618. {error, enoent} ->
  4619. ok;
  4620. {ok, Fd} ->
  4621. {_, ModFile} = lists:keyfind(Mod, 1, Modules),
  4622. case ets:match(E, {ModFile, DepFile}) of
  4623. [] ->
  4624. ets:insert(E, {ModFile, DepFile}),
  4625. F(F, Fd, Mod,0);
  4626. _ -> ok
  4627. end
  4628. end
  4629. end,
  4630. SearchHrl = fun
  4631. F(_Hrl, []) -> {error,enoent};
  4632. F(Hrl, [Dir|Dirs]) ->
  4633. HrlF = filename:join([Dir,Hrl]),
  4634. case filelib:is_file(HrlF) of
  4635. true ->
  4636. {ok, HrlF};
  4637. false -> F(Hrl,Dirs)
  4638. end
  4639. end,
  4640. Attr = fun
  4641. (_F, Mod, behavior, Dep) ->
  4642. Add(Mod, Dep);
  4643. (_F, Mod, behaviour, Dep) ->
  4644. Add(Mod, Dep);
  4645. (_F, Mod, compile, {parse_transform, Dep}) ->
  4646. Add(Mod, Dep);
  4647. (_F, Mod, compile, Opts) when is_list(Opts) ->
  4648. case proplists:get_value(parse_transform, Opts) of
  4649. undefined -> ok;
  4650. Dep -> Add(Mod, Dep)
  4651. end;
  4652. (F, Mod, include, Hrl) ->
  4653. case SearchHrl(Hrl, ["src", "include",AppsDir,DepsDir]++AppsDirs++DepsDirs) of
  4654. {ok, FoundHrl} -> AddHd(F, Mod, FoundHrl);
  4655. {error, _} -> false
  4656. end;
  4657. (F, Mod, include_lib, Hrl) ->
  4658. case SearchHrl(Hrl, ["src", "include",AppsDir,DepsDir]++AppsDirs++DepsDirs) of
  4659. {ok, FoundHrl} -> AddHd(F, Mod, FoundHrl);
  4660. {error, _} -> false
  4661. end;
  4662. (F, Mod, import, {Imp, _}) ->
  4663. IsFile =
  4664. case lists:keyfind(Imp, 1, Modules) of
  4665. false -> false;
  4666. {_, FilePath} -> filelib:is_file(FilePath)
  4667. end,
  4668. case IsFile of
  4669. false -> ok;
  4670. true -> Add(Mod, Imp)
  4671. end;
  4672. (_, _, _, _) -> ok
  4673. end,
  4674. MakeDepend = fun
  4675. (F, Fd, Mod, StartLocation) ->
  4676. {ok, Filename} = file:pid2name(Fd),
  4677. case io:parse_erl_form(Fd, undefined, StartLocation) of
  4678. {ok, AbsData, EndLocation} ->
  4679. case AbsData of
  4680. {attribute, _, Key, Value} ->
  4681. Attr(F, Mod, Key, Value),
  4682. F(F, Fd, Mod, EndLocation);
  4683. _ -> F(F, Fd, Mod, EndLocation)
  4684. end;
  4685. {eof, _ } -> file:close(Fd);
  4686. {error, ErrorDescription } ->
  4687. file:close(Fd);
  4688. {error, ErrorInfo, ErrorLocation} ->
  4689. F(F, Fd, Mod, ErrorLocation)
  4690. end,
  4691. ok
  4692. end,
  4693. [begin
  4694. Mod = list_to_atom(filename:basename(F, ".erl")),
  4695. case file:open(F, [read]) of
  4696. {ok, Fd} -> MakeDepend(MakeDepend, Fd, Mod,0);
  4697. {error, enoent} -> ok
  4698. end
  4699. end || F <- ErlFiles],
  4700. Depend = sofs:to_external(sofs:relation_to_family(sofs:relation(ets:tab2list(E)))),
  4701. CompileFirst = [X || X <- lists:reverse(digraph_utils:topsort(G)), [] =/= digraph:in_neighbours(G, X)],
  4702. TargetPath = fun(Target) ->
  4703. case lists:keyfind(Target, 1, Modules) of
  4704. false -> "";
  4705. {_, DepFile} ->
  4706. DirSubname = tl(string:tokens(filename:dirname(DepFile), "/")),
  4707. string:join(DirSubname ++ [atom_to_list(Target)], "/")
  4708. end
  4709. end,
  4710. Output0 = [
  4711. "# Generated by Erlang.mk. Edit at your own risk!\n\n",
  4712. [[F, "::", [[" ", D] || D <- Deps], "; @touch \$$@\n"] || {F, Deps} <- Depend],
  4713. "\nCOMPILE_FIRST +=", [[" ", TargetPath(CF)] || CF <- CompileFirst], "\n"
  4714. ],
  4715. Output = case "é" of
  4716. [233] -> unicode:characters_to_binary(Output0);
  4717. _ -> Output0
  4718. end,
  4719. ok = file:write_file("$(1)", Output),
  4720. halt()
  4721. endef
  4722. ifeq ($(if $(NO_MAKEDEP),$(wildcard $(PROJECT).d),),)
  4723. $(PROJECT).d:: $(ERL_FILES) $(call core_find,include/,*.hrl) $(MAKEFILE_LIST)
  4724. $(makedep_verbose) $(call erlang,$(call makedep.erl,$@))
  4725. endif
  4726. ifeq ($(IS_APP)$(IS_DEP),)
  4727. ifneq ($(words $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES)),0)
  4728. # Rebuild everything when the Makefile changes.
  4729. $(ERLANG_MK_TMP)/last-makefile-change: $(MAKEFILE_LIST) | $(ERLANG_MK_TMP)
  4730. $(verbose) if test -f $@; then \
  4731. touch $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES); \
  4732. touch -c $(PROJECT).d; \
  4733. fi
  4734. $(verbose) touch $@
  4735. $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES):: $(ERLANG_MK_TMP)/last-makefile-change
  4736. ebin/$(PROJECT).app:: $(ERLANG_MK_TMP)/last-makefile-change
  4737. endif
  4738. endif
  4739. $(PROJECT).d::
  4740. $(verbose) :
  4741. include $(wildcard $(PROJECT).d)
  4742. ebin/$(PROJECT).app:: ebin/
  4743. ebin/:
  4744. $(verbose) mkdir -p ebin/
  4745. define compile_erl
  4746. $(erlc_verbose) erlc -v $(if $(IS_DEP),$(filter-out -Werror,$(ERLC_OPTS)),$(ERLC_OPTS)) -o ebin/ \
  4747. -pa ebin/ -I include/ $(filter-out $(ERLC_EXCLUDE_PATHS),$(COMPILE_FIRST_PATHS) $(1))
  4748. endef
  4749. define validate_app_file
  4750. case file:consult("ebin/$(PROJECT).app") of
  4751. {ok, _} -> halt();
  4752. _ -> halt(1)
  4753. end
  4754. endef
  4755. ebin/$(PROJECT).app:: $(ERL_FILES) $(CORE_FILES) $(wildcard src/$(PROJECT).app.src)
  4756. $(eval FILES_TO_COMPILE := $(filter-out src/$(PROJECT).app.src,$?))
  4757. $(if $(strip $(FILES_TO_COMPILE)),$(call compile_erl,$(FILES_TO_COMPILE)))
  4758. # Older git versions do not have the --first-parent flag. Do without in that case.
  4759. $(eval GITDESCRIBE := $(shell git describe --dirty --abbrev=7 --tags --always --first-parent 2>/dev/null \
  4760. || git describe --dirty --abbrev=7 --tags --always 2>/dev/null || true))
  4761. $(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \
  4762. $(filter-out $(ERLC_EXCLUDE_PATHS),$(ERL_FILES) $(CORE_FILES) $(BEAM_FILES)))))))
  4763. ifeq ($(wildcard src/$(PROJECT).app.src),)
  4764. $(app_verbose) printf '$(subst %,%%,$(subst $(newline),\n,$(subst ','\'',$(call app_file,$(GITDESCRIBE),$(MODULES)))))' \
  4765. > ebin/$(PROJECT).app
  4766. $(verbose) if ! $(call erlang,$(call validate_app_file)); then \
  4767. echo "The .app file produced is invalid. Please verify the value of PROJECT_ENV." >&2; \
  4768. exit 1; \
  4769. fi
  4770. else
  4771. $(verbose) if [ -z "$$(grep -e '^[^%]*{\s*modules\s*,' src/$(PROJECT).app.src)" ]; then \
  4772. echo "Empty modules entry not found in $(PROJECT).app.src. Please consult the erlang.mk documentation for instructions." >&2; \
  4773. exit 1; \
  4774. fi
  4775. $(appsrc_verbose) cat src/$(PROJECT).app.src \
  4776. | sed "s/{[[:space:]]*modules[[:space:]]*,[[:space:]]*\[\]}/{modules, \[$(call comma_list,$(MODULES))\]}/" \
  4777. | sed "s/{id,[[:space:]]*\"git\"}/{id, \"$(subst /,\/,$(GITDESCRIBE))\"}/" \
  4778. > ebin/$(PROJECT).app
  4779. endif
  4780. ifneq ($(wildcard src/$(PROJECT).appup),)
  4781. $(verbose) cp src/$(PROJECT).appup ebin/
  4782. endif
  4783. clean:: clean-app
  4784. clean-app:
  4785. $(gen_verbose) rm -rf $(PROJECT).d ebin/ priv/mibs/ $(XRL_ERL_FILES) $(YRL_ERL_FILES) \
  4786. $(addprefix include/,$(patsubst %.mib,%.hrl,$(notdir $(MIB_FILES)))) \
  4787. $(addprefix include/,$(patsubst %.asn1,%.hrl,$(notdir $(ASN1_FILES)))) \
  4788. $(addprefix include/,$(patsubst %.asn1,%.asn1db,$(notdir $(ASN1_FILES)))) \
  4789. $(addprefix src/,$(patsubst %.asn1,%.erl,$(notdir $(ASN1_FILES))))
  4790. endif
  4791. # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
  4792. # Copyright (c) 2015, Viktor Söderqvist <viktor@zuiderkwast.se>
  4793. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4794. .PHONY: docs-deps
  4795. # Configuration.
  4796. ALL_DOC_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(DOC_DEPS))
  4797. # Targets.
  4798. $(foreach dep,$(DOC_DEPS),$(eval $(call dep_target,$(dep))))
  4799. ifneq ($(SKIP_DEPS),)
  4800. doc-deps:
  4801. else
  4802. doc-deps: $(ALL_DOC_DEPS_DIRS)
  4803. $(verbose) set -e; for dep in $(ALL_DOC_DEPS_DIRS) ; do $(MAKE) -C $$dep IS_DEP=1; done
  4804. endif
  4805. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  4806. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4807. .PHONY: rel-deps
  4808. # Configuration.
  4809. ALL_REL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(REL_DEPS))
  4810. # Targets.
  4811. $(foreach dep,$(REL_DEPS),$(eval $(call dep_target,$(dep))))
  4812. ifneq ($(SKIP_DEPS),)
  4813. rel-deps:
  4814. else
  4815. rel-deps: $(ALL_REL_DEPS_DIRS)
  4816. $(verbose) set -e; for dep in $(ALL_REL_DEPS_DIRS) ; do $(MAKE) -C $$dep; done
  4817. endif
  4818. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  4819. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4820. .PHONY: test-deps test-dir test-build clean-test-dir
  4821. # Configuration.
  4822. TEST_DIR ?= $(CURDIR)/test
  4823. ALL_TEST_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(TEST_DEPS))
  4824. TEST_ERLC_OPTS ?= +debug_info +warn_export_vars +warn_shadow_vars +warn_obsolete_guard
  4825. TEST_ERLC_OPTS += -DTEST=1
  4826. # Targets.
  4827. $(foreach dep,$(TEST_DEPS),$(eval $(call dep_target,$(dep))))
  4828. ifneq ($(SKIP_DEPS),)
  4829. test-deps:
  4830. else
  4831. test-deps: $(ALL_TEST_DEPS_DIRS)
  4832. $(verbose) set -e; for dep in $(ALL_TEST_DEPS_DIRS) ; do \
  4833. if [ -z "$(strip $(FULL))" ] && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \
  4834. :; \
  4835. else \
  4836. $(MAKE) -C $$dep IS_DEP=1; \
  4837. if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \
  4838. fi \
  4839. done
  4840. endif
  4841. ifneq ($(wildcard $(TEST_DIR)),)
  4842. test-dir: $(ERLANG_MK_TMP)/$(PROJECT).last-testdir-build
  4843. @:
  4844. test_erlc_verbose_0 = @echo " ERLC " $(filter-out $(patsubst %,%.erl,$(ERLC_EXCLUDE)),\
  4845. $(filter %.erl %.core,$(notdir $(FILES_TO_COMPILE))));
  4846. test_erlc_verbose_2 = set -x;
  4847. test_erlc_verbose = $(test_erlc_verbose_$(V))
  4848. define compile_test_erl
  4849. $(test_erlc_verbose) erlc -v $(TEST_ERLC_OPTS) -o $(TEST_DIR) \
  4850. -pa ebin/ -I include/ $(1)
  4851. endef
  4852. ERL_TEST_FILES = $(call core_find,$(TEST_DIR)/,*.erl)
  4853. $(ERLANG_MK_TMP)/$(PROJECT).last-testdir-build: $(ERL_TEST_FILES) $(MAKEFILE_LIST)
  4854. $(eval FILES_TO_COMPILE := $(if $(filter $(MAKEFILE_LIST),$?),$(filter $(ERL_TEST_FILES),$^),$?))
  4855. $(if $(strip $(FILES_TO_COMPILE)),$(call compile_test_erl,$(FILES_TO_COMPILE)) && touch $@)
  4856. endif
  4857. test-build:: IS_TEST=1
  4858. test-build:: ERLC_OPTS=$(TEST_ERLC_OPTS)
  4859. test-build:: $(if $(wildcard src),$(if $(wildcard ebin/test),,clean)) $(if $(IS_APP),,deps test-deps)
  4860. # We already compiled everything when IS_APP=1.
  4861. ifndef IS_APP
  4862. ifneq ($(wildcard src),)
  4863. $(verbose) $(MAKE) --no-print-directory $(PROJECT).d ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
  4864. $(verbose) $(MAKE) --no-print-directory app-build ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
  4865. $(gen_verbose) touch ebin/test
  4866. endif
  4867. ifneq ($(wildcard $(TEST_DIR)),)
  4868. $(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
  4869. endif
  4870. endif
  4871. # Roughly the same as test-build, but when IS_APP=1.
  4872. # We only care about compiling the current application.
  4873. ifdef IS_APP
  4874. test-build-app:: ERLC_OPTS=$(TEST_ERLC_OPTS)
  4875. test-build-app:: deps test-deps
  4876. ifneq ($(wildcard src),)
  4877. $(verbose) $(MAKE) --no-print-directory $(PROJECT).d ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
  4878. $(verbose) $(MAKE) --no-print-directory app-build ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
  4879. $(gen_verbose) touch ebin/test
  4880. endif
  4881. ifneq ($(wildcard $(TEST_DIR)),)
  4882. $(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
  4883. endif
  4884. endif
  4885. clean:: clean-test-dir
  4886. clean-test-dir:
  4887. ifneq ($(wildcard $(TEST_DIR)/*.beam),)
  4888. $(gen_verbose) rm -f $(TEST_DIR)/*.beam $(ERLANG_MK_TMP)/$(PROJECT).last-testdir-build
  4889. endif
  4890. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  4891. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4892. .PHONY: rebar.config
  4893. # We strip out -Werror because we don't want to fail due to
  4894. # warnings when used as a dependency.
  4895. compat_prepare_erlc_opts = $(shell echo "$1" | sed 's/, */,/g')
  4896. define compat_convert_erlc_opts
  4897. $(if $(filter-out -Werror,$1),\
  4898. $(if $(findstring +,$1),\
  4899. $(shell echo $1 | cut -b 2-)))
  4900. endef
  4901. define compat_erlc_opts_to_list
  4902. [$(call comma_list,$(foreach o,$(call compat_prepare_erlc_opts,$1),$(call compat_convert_erlc_opts,$o)))]
  4903. endef
  4904. define compat_rebar_config
  4905. {deps, [
  4906. $(call comma_list,$(foreach d,$(DEPS),\
  4907. $(if $(filter hex,$(call dep_fetch,$d)),\
  4908. {$(call dep_name,$d)$(comma)"$(call dep_repo,$d)"},\
  4909. {$(call dep_name,$d)$(comma)".*"$(comma){git,"$(call dep_repo,$d)"$(comma)"$(call dep_commit,$d)"}})))
  4910. ]}.
  4911. {erl_opts, $(call compat_erlc_opts_to_list,$(ERLC_OPTS))}.
  4912. endef
  4913. rebar.config:
  4914. $(gen_verbose) $(call core_render,compat_rebar_config,rebar.config)
  4915. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  4916. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4917. ifeq ($(filter asciideck,$(DEPS) $(DOC_DEPS)),asciideck)
  4918. .PHONY: asciidoc asciidoc-guide asciidoc-manual install-asciidoc distclean-asciidoc-guide distclean-asciidoc-manual
  4919. # Core targets.
  4920. docs:: asciidoc
  4921. distclean:: distclean-asciidoc-guide distclean-asciidoc-manual
  4922. # Plugin-specific targets.
  4923. asciidoc: asciidoc-guide asciidoc-manual
  4924. # User guide.
  4925. ifeq ($(wildcard doc/src/guide/book.asciidoc),)
  4926. asciidoc-guide:
  4927. else
  4928. asciidoc-guide: distclean-asciidoc-guide doc-deps
  4929. a2x -v -f pdf doc/src/guide/book.asciidoc && mv doc/src/guide/book.pdf doc/guide.pdf
  4930. a2x -v -f chunked doc/src/guide/book.asciidoc && mv doc/src/guide/book.chunked/ doc/html/
  4931. distclean-asciidoc-guide:
  4932. $(gen_verbose) rm -rf doc/html/ doc/guide.pdf
  4933. endif
  4934. # Man pages.
  4935. ASCIIDOC_MANUAL_FILES := $(wildcard doc/src/manual/*.asciidoc)
  4936. ifeq ($(ASCIIDOC_MANUAL_FILES),)
  4937. asciidoc-manual:
  4938. else
  4939. # Configuration.
  4940. MAN_INSTALL_PATH ?= /usr/local/share/man
  4941. MAN_SECTIONS ?= 3 7
  4942. MAN_PROJECT ?= $(shell echo $(PROJECT) | sed 's/^./\U&\E/')
  4943. MAN_VERSION ?= $(PROJECT_VERSION)
  4944. # Plugin-specific targets.
  4945. define asciidoc2man.erl
  4946. try
  4947. [begin
  4948. io:format(" ADOC ~s~n", [F]),
  4949. ok = asciideck:to_manpage(asciideck:parse_file(F), #{
  4950. compress => gzip,
  4951. outdir => filename:dirname(F),
  4952. extra2 => "$(MAN_PROJECT) $(MAN_VERSION)",
  4953. extra3 => "$(MAN_PROJECT) Function Reference"
  4954. })
  4955. end || F <- [$(shell echo $(addprefix $(comma)\",$(addsuffix \",$1)) | sed 's/^.//')]],
  4956. halt(0)
  4957. catch C:E ->
  4958. io:format("Exception ~p:~p~nStacktrace: ~p~n", [C, E, erlang:get_stacktrace()]),
  4959. halt(1)
  4960. end.
  4961. endef
  4962. asciidoc-manual:: doc-deps
  4963. asciidoc-manual:: $(ASCIIDOC_MANUAL_FILES)
  4964. $(gen_verbose) $(call erlang,$(call asciidoc2man.erl,$?))
  4965. $(verbose) $(foreach s,$(MAN_SECTIONS),mkdir -p doc/man$s/ && mv doc/src/manual/*.$s.gz doc/man$s/;)
  4966. install-docs:: install-asciidoc
  4967. install-asciidoc: asciidoc-manual
  4968. $(foreach s,$(MAN_SECTIONS),\
  4969. mkdir -p $(MAN_INSTALL_PATH)/man$s/ && \
  4970. install -g `id -g` -o `id -u` -m 0644 doc/man$s/*.gz $(MAN_INSTALL_PATH)/man$s/;)
  4971. distclean-asciidoc-manual:
  4972. $(gen_verbose) rm -rf $(addprefix doc/man,$(MAN_SECTIONS))
  4973. endif
  4974. endif
  4975. # Copyright (c) 2014-2016, Loïc Hoguin <essen@ninenines.eu>
  4976. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4977. .PHONY: bootstrap bootstrap-lib bootstrap-rel new list-templates
  4978. # Core targets.
  4979. help::
  4980. $(verbose) printf "%s\n" "" \
  4981. "Bootstrap targets:" \
  4982. " bootstrap Generate a skeleton of an OTP application" \
  4983. " bootstrap-lib Generate a skeleton of an OTP library" \
  4984. " bootstrap-rel Generate the files needed to build a release" \
  4985. " new-app in=NAME Create a new local OTP application NAME" \
  4986. " new-lib in=NAME Create a new local OTP library NAME" \
  4987. " new t=TPL n=NAME Generate a module NAME based on the template TPL" \
  4988. " new t=T n=N in=APP Generate a module NAME based on the template TPL in APP" \
  4989. " list-templates List available templates"
  4990. # Bootstrap templates.
  4991. define bs_appsrc
  4992. {application, $p, [
  4993. {description, ""},
  4994. {vsn, "0.1.0"},
  4995. {id, "git"},
  4996. {modules, []},
  4997. {registered, []},
  4998. {applications, [
  4999. kernel,
  5000. stdlib
  5001. ]},
  5002. {mod, {$p_app, []}},
  5003. {env, []}
  5004. ]}.
  5005. endef
  5006. define bs_appsrc_lib
  5007. {application, $p, [
  5008. {description, ""},
  5009. {vsn, "0.1.0"},
  5010. {id, "git"},
  5011. {modules, []},
  5012. {registered, []},
  5013. {applications, [
  5014. kernel,
  5015. stdlib
  5016. ]}
  5017. ]}.
  5018. endef
  5019. # To prevent autocompletion issues with ZSH, we add "include erlang.mk"
  5020. # separately during the actual bootstrap.
  5021. define bs_Makefile
  5022. PROJECT = $p
  5023. PROJECT_DESCRIPTION = New project
  5024. PROJECT_VERSION = 0.1.0
  5025. $(if $(SP),
  5026. # Whitespace to be used when creating files from templates.
  5027. SP = $(SP)
  5028. )
  5029. endef
  5030. define bs_apps_Makefile
  5031. PROJECT = $p
  5032. PROJECT_DESCRIPTION = New project
  5033. PROJECT_VERSION = 0.1.0
  5034. $(if $(SP),
  5035. # Whitespace to be used when creating files from templates.
  5036. SP = $(SP)
  5037. )
  5038. # Make sure we know where the applications are located.
  5039. ROOT_DIR ?= $(call core_relpath,$(dir $(ERLANG_MK_FILENAME)),$(APPS_DIR)/app)
  5040. APPS_DIR ?= ..
  5041. DEPS_DIR ?= $(call core_relpath,$(DEPS_DIR),$(APPS_DIR)/app)
  5042. include $$(ROOT_DIR)/erlang.mk
  5043. endef
  5044. define bs_app
  5045. -module($p_app).
  5046. -behaviour(application).
  5047. -export([start/2]).
  5048. -export([stop/1]).
  5049. start(_Type, _Args) ->
  5050. $p_sup:start_link().
  5051. stop(_State) ->
  5052. ok.
  5053. endef
  5054. define bs_relx_config
  5055. {release, {$p_release, "1"}, [$p, sasl, runtime_tools]}.
  5056. {dev_mode, false}.
  5057. {include_erts, true}.
  5058. {extended_start_script, true}.
  5059. {sys_config, "config/sys.config"}.
  5060. {vm_args, "config/vm.args"}.
  5061. endef
  5062. define bs_sys_config
  5063. [
  5064. ].
  5065. endef
  5066. define bs_vm_args
  5067. -name $p@127.0.0.1
  5068. -setcookie $p
  5069. -heart
  5070. endef
  5071. # Normal templates.
  5072. define tpl_supervisor
  5073. -module($(n)).
  5074. -behaviour(supervisor).
  5075. -export([start_link/0]).
  5076. -export([init/1]).
  5077. start_link() ->
  5078. supervisor:start_link({local, ?MODULE}, ?MODULE, []).
  5079. init([]) ->
  5080. Procs = [],
  5081. {ok, {{one_for_one, 1, 5}, Procs}}.
  5082. endef
  5083. define tpl_gen_server
  5084. -module($(n)).
  5085. -behaviour(gen_server).
  5086. %% API.
  5087. -export([start_link/0]).
  5088. %% gen_server.
  5089. -export([init/1]).
  5090. -export([handle_call/3]).
  5091. -export([handle_cast/2]).
  5092. -export([handle_info/2]).
  5093. -export([terminate/2]).
  5094. -export([code_change/3]).
  5095. -record(state, {
  5096. }).
  5097. %% API.
  5098. -spec start_link() -> {ok, pid()}.
  5099. start_link() ->
  5100. gen_server:start_link(?MODULE, [], []).
  5101. %% gen_server.
  5102. init([]) ->
  5103. {ok, #state{}}.
  5104. handle_call(_Request, _From, State) ->
  5105. {reply, ignored, State}.
  5106. handle_cast(_Msg, State) ->
  5107. {noreply, State}.
  5108. handle_info(_Info, State) ->
  5109. {noreply, State}.
  5110. terminate(_Reason, _State) ->
  5111. ok.
  5112. code_change(_OldVsn, State, _Extra) ->
  5113. {ok, State}.
  5114. endef
  5115. define tpl_module
  5116. -module($(n)).
  5117. -export([]).
  5118. endef
  5119. define tpl_cowboy_http
  5120. -module($(n)).
  5121. -behaviour(cowboy_http_handler).
  5122. -export([init/3]).
  5123. -export([handle/2]).
  5124. -export([terminate/3]).
  5125. -record(state, {
  5126. }).
  5127. init(_, Req, _Opts) ->
  5128. {ok, Req, #state{}}.
  5129. handle(Req, State=#state{}) ->
  5130. {ok, Req2} = cowboy_req:reply(200, Req),
  5131. {ok, Req2, State}.
  5132. terminate(_Reason, _Req, _State) ->
  5133. ok.
  5134. endef
  5135. define tpl_gen_fsm
  5136. -module($(n)).
  5137. -behaviour(gen_fsm).
  5138. %% API.
  5139. -export([start_link/0]).
  5140. %% gen_fsm.
  5141. -export([init/1]).
  5142. -export([state_name/2]).
  5143. -export([handle_event/3]).
  5144. -export([state_name/3]).
  5145. -export([handle_sync_event/4]).
  5146. -export([handle_info/3]).
  5147. -export([terminate/3]).
  5148. -export([code_change/4]).
  5149. -record(state, {
  5150. }).
  5151. %% API.
  5152. -spec start_link() -> {ok, pid()}.
  5153. start_link() ->
  5154. gen_fsm:start_link(?MODULE, [], []).
  5155. %% gen_fsm.
  5156. init([]) ->
  5157. {ok, state_name, #state{}}.
  5158. state_name(_Event, StateData) ->
  5159. {next_state, state_name, StateData}.
  5160. handle_event(_Event, StateName, StateData) ->
  5161. {next_state, StateName, StateData}.
  5162. state_name(_Event, _From, StateData) ->
  5163. {reply, ignored, state_name, StateData}.
  5164. handle_sync_event(_Event, _From, StateName, StateData) ->
  5165. {reply, ignored, StateName, StateData}.
  5166. handle_info(_Info, StateName, StateData) ->
  5167. {next_state, StateName, StateData}.
  5168. terminate(_Reason, _StateName, _StateData) ->
  5169. ok.
  5170. code_change(_OldVsn, StateName, StateData, _Extra) ->
  5171. {ok, StateName, StateData}.
  5172. endef
  5173. define tpl_gen_statem
  5174. -module($(n)).
  5175. -behaviour(gen_statem).
  5176. %% API.
  5177. -export([start_link/0]).
  5178. %% gen_statem.
  5179. -export([callback_mode/0]).
  5180. -export([init/1]).
  5181. -export([state_name/3]).
  5182. -export([handle_event/4]).
  5183. -export([terminate/3]).
  5184. -export([code_change/4]).
  5185. -record(state, {
  5186. }).
  5187. %% API.
  5188. -spec start_link() -> {ok, pid()}.
  5189. start_link() ->
  5190. gen_statem:start_link(?MODULE, [], []).
  5191. %% gen_statem.
  5192. callback_mode() ->
  5193. state_functions.
  5194. init([]) ->
  5195. {ok, state_name, #state{}}.
  5196. state_name(_EventType, _EventData, StateData) ->
  5197. {next_state, state_name, StateData}.
  5198. handle_event(_EventType, _EventData, StateName, StateData) ->
  5199. {next_state, StateName, StateData}.
  5200. terminate(_Reason, _StateName, _StateData) ->
  5201. ok.
  5202. code_change(_OldVsn, StateName, StateData, _Extra) ->
  5203. {ok, StateName, StateData}.
  5204. endef
  5205. define tpl_cowboy_loop
  5206. -module($(n)).
  5207. -behaviour(cowboy_loop_handler).
  5208. -export([init/3]).
  5209. -export([info/3]).
  5210. -export([terminate/3]).
  5211. -record(state, {
  5212. }).
  5213. init(_, Req, _Opts) ->
  5214. {loop, Req, #state{}, 5000, hibernate}.
  5215. info(_Info, Req, State) ->
  5216. {loop, Req, State, hibernate}.
  5217. terminate(_Reason, _Req, _State) ->
  5218. ok.
  5219. endef
  5220. define tpl_cowboy_rest
  5221. -module($(n)).
  5222. -export([init/3]).
  5223. -export([content_types_provided/2]).
  5224. -export([get_html/2]).
  5225. init(_, _Req, _Opts) ->
  5226. {upgrade, protocol, cowboy_rest}.
  5227. content_types_provided(Req, State) ->
  5228. {[{{<<"text">>, <<"html">>, '*'}, get_html}], Req, State}.
  5229. get_html(Req, State) ->
  5230. {<<"<html><body>This is REST!</body></html>">>, Req, State}.
  5231. endef
  5232. define tpl_cowboy_ws
  5233. -module($(n)).
  5234. -behaviour(cowboy_websocket_handler).
  5235. -export([init/3]).
  5236. -export([websocket_init/3]).
  5237. -export([websocket_handle/3]).
  5238. -export([websocket_info/3]).
  5239. -export([websocket_terminate/3]).
  5240. -record(state, {
  5241. }).
  5242. init(_, _, _) ->
  5243. {upgrade, protocol, cowboy_websocket}.
  5244. websocket_init(_, Req, _Opts) ->
  5245. Req2 = cowboy_req:compact(Req),
  5246. {ok, Req2, #state{}}.
  5247. websocket_handle({text, Data}, Req, State) ->
  5248. {reply, {text, Data}, Req, State};
  5249. websocket_handle({binary, Data}, Req, State) ->
  5250. {reply, {binary, Data}, Req, State};
  5251. websocket_handle(_Frame, Req, State) ->
  5252. {ok, Req, State}.
  5253. websocket_info(_Info, Req, State) ->
  5254. {ok, Req, State}.
  5255. websocket_terminate(_Reason, _Req, _State) ->
  5256. ok.
  5257. endef
  5258. define tpl_ranch_protocol
  5259. -module($(n)).
  5260. -behaviour(ranch_protocol).
  5261. -export([start_link/4]).
  5262. -export([init/4]).
  5263. -type opts() :: [].
  5264. -export_type([opts/0]).
  5265. -record(state, {
  5266. socket :: inet:socket(),
  5267. transport :: module()
  5268. }).
  5269. start_link(Ref, Socket, Transport, Opts) ->
  5270. Pid = spawn_link(?MODULE, init, [Ref, Socket, Transport, Opts]),
  5271. {ok, Pid}.
  5272. -spec init(ranch:ref(), inet:socket(), module(), opts()) -> ok.
  5273. init(Ref, Socket, Transport, _Opts) ->
  5274. ok = ranch:accept_ack(Ref),
  5275. loop(#state{socket=Socket, transport=Transport}).
  5276. loop(State) ->
  5277. loop(State).
  5278. endef
  5279. # Plugin-specific targets.
  5280. ifndef WS
  5281. ifdef SP
  5282. WS = $(subst a,,a $(wordlist 1,$(SP),a a a a a a a a a a a a a a a a a a a a))
  5283. else
  5284. WS = $(tab)
  5285. endif
  5286. endif
  5287. bootstrap:
  5288. ifneq ($(wildcard src/),)
  5289. $(error Error: src/ directory already exists)
  5290. endif
  5291. $(eval p := $(PROJECT))
  5292. $(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\
  5293. $(error Error: Invalid characters in the application name))
  5294. $(eval n := $(PROJECT)_sup)
  5295. $(verbose) $(call core_render,bs_Makefile,Makefile)
  5296. $(verbose) echo "include erlang.mk" >> Makefile
  5297. $(verbose) mkdir src/
  5298. ifdef LEGACY
  5299. $(verbose) $(call core_render,bs_appsrc,src/$(PROJECT).app.src)
  5300. endif
  5301. $(verbose) $(call core_render,bs_app,src/$(PROJECT)_app.erl)
  5302. $(verbose) $(call core_render,tpl_supervisor,src/$(PROJECT)_sup.erl)
  5303. bootstrap-lib:
  5304. ifneq ($(wildcard src/),)
  5305. $(error Error: src/ directory already exists)
  5306. endif
  5307. $(eval p := $(PROJECT))
  5308. $(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\
  5309. $(error Error: Invalid characters in the application name))
  5310. $(verbose) $(call core_render,bs_Makefile,Makefile)
  5311. $(verbose) echo "include erlang.mk" >> Makefile
  5312. $(verbose) mkdir src/
  5313. ifdef LEGACY
  5314. $(verbose) $(call core_render,bs_appsrc_lib,src/$(PROJECT).app.src)
  5315. endif
  5316. bootstrap-rel:
  5317. ifneq ($(wildcard relx.config),)
  5318. $(error Error: relx.config already exists)
  5319. endif
  5320. ifneq ($(wildcard config/),)
  5321. $(error Error: config/ directory already exists)
  5322. endif
  5323. $(eval p := $(PROJECT))
  5324. $(verbose) $(call core_render,bs_relx_config,relx.config)
  5325. $(verbose) mkdir config/
  5326. $(verbose) $(call core_render,bs_sys_config,config/sys.config)
  5327. $(verbose) $(call core_render,bs_vm_args,config/vm.args)
  5328. $(verbose) awk '/^include erlang.mk/ && !ins {print "BUILD_DEPS += relx";ins=1};{print}' Makefile > Makefile.bak
  5329. $(verbose) mv Makefile.bak Makefile
  5330. new-app:
  5331. ifndef in
  5332. $(error Usage: $(MAKE) new-app in=APP)
  5333. endif
  5334. ifneq ($(wildcard $(APPS_DIR)/$in),)
  5335. $(error Error: Application $in already exists)
  5336. endif
  5337. $(eval p := $(in))
  5338. $(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\
  5339. $(error Error: Invalid characters in the application name))
  5340. $(eval n := $(in)_sup)
  5341. $(verbose) mkdir -p $(APPS_DIR)/$p/src/
  5342. $(verbose) $(call core_render,bs_apps_Makefile,$(APPS_DIR)/$p/Makefile)
  5343. ifdef LEGACY
  5344. $(verbose) $(call core_render,bs_appsrc,$(APPS_DIR)/$p/src/$p.app.src)
  5345. endif
  5346. $(verbose) $(call core_render,bs_app,$(APPS_DIR)/$p/src/$p_app.erl)
  5347. $(verbose) $(call core_render,tpl_supervisor,$(APPS_DIR)/$p/src/$p_sup.erl)
  5348. new-lib:
  5349. ifndef in
  5350. $(error Usage: $(MAKE) new-lib in=APP)
  5351. endif
  5352. ifneq ($(wildcard $(APPS_DIR)/$in),)
  5353. $(error Error: Application $in already exists)
  5354. endif
  5355. $(eval p := $(in))
  5356. $(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\
  5357. $(error Error: Invalid characters in the application name))
  5358. $(verbose) mkdir -p $(APPS_DIR)/$p/src/
  5359. $(verbose) $(call core_render,bs_apps_Makefile,$(APPS_DIR)/$p/Makefile)
  5360. ifdef LEGACY
  5361. $(verbose) $(call core_render,bs_appsrc_lib,$(APPS_DIR)/$p/src/$p.app.src)
  5362. endif
  5363. new:
  5364. ifeq ($(wildcard src/)$(in),)
  5365. $(error Error: src/ directory does not exist)
  5366. endif
  5367. ifndef t
  5368. $(error Usage: $(MAKE) new t=TEMPLATE n=NAME [in=APP])
  5369. endif
  5370. ifndef n
  5371. $(error Usage: $(MAKE) new t=TEMPLATE n=NAME [in=APP])
  5372. endif
  5373. ifdef in
  5374. $(verbose) $(call core_render,tpl_$(t),$(APPS_DIR)/$(in)/src/$(n).erl)
  5375. else
  5376. $(verbose) $(call core_render,tpl_$(t),src/$(n).erl)
  5377. endif
  5378. list-templates:
  5379. $(verbose) @echo Available templates:
  5380. $(verbose) printf " %s\n" $(sort $(patsubst tpl_%,%,$(filter tpl_%,$(.VARIABLES))))
  5381. # Copyright (c) 2014-2016, Loïc Hoguin <essen@ninenines.eu>
  5382. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5383. .PHONY: clean-c_src distclean-c_src-env
  5384. # Configuration.
  5385. C_SRC_DIR ?= $(CURDIR)/c_src
  5386. C_SRC_ENV ?= $(C_SRC_DIR)/env.mk
  5387. C_SRC_OUTPUT ?= $(CURDIR)/priv/$(PROJECT)
  5388. C_SRC_TYPE ?= shared
  5389. # System type and C compiler/flags.
  5390. ifeq ($(PLATFORM),msys2)
  5391. C_SRC_OUTPUT_EXECUTABLE_EXTENSION ?= .exe
  5392. C_SRC_OUTPUT_SHARED_EXTENSION ?= .dll
  5393. else
  5394. C_SRC_OUTPUT_EXECUTABLE_EXTENSION ?=
  5395. C_SRC_OUTPUT_SHARED_EXTENSION ?= .so
  5396. endif
  5397. ifeq ($(C_SRC_TYPE),shared)
  5398. C_SRC_OUTPUT_FILE = $(C_SRC_OUTPUT)$(C_SRC_OUTPUT_SHARED_EXTENSION)
  5399. else
  5400. C_SRC_OUTPUT_FILE = $(C_SRC_OUTPUT)$(C_SRC_OUTPUT_EXECUTABLE_EXTENSION)
  5401. endif
  5402. ifeq ($(PLATFORM),msys2)
  5403. # We hardcode the compiler used on MSYS2. The default CC=cc does
  5404. # not produce working code. The "gcc" MSYS2 package also doesn't.
  5405. CC = /mingw64/bin/gcc
  5406. export CC
  5407. CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
  5408. CXXFLAGS ?= -O3 -finline-functions -Wall
  5409. else ifeq ($(PLATFORM),darwin)
  5410. CC ?= cc
  5411. CFLAGS ?= -O3 -std=c99 -Wall -Wmissing-prototypes
  5412. CXXFLAGS ?= -O3 -Wall
  5413. LDFLAGS ?= -flat_namespace -undefined suppress
  5414. else ifeq ($(PLATFORM),freebsd)
  5415. CC ?= cc
  5416. CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
  5417. CXXFLAGS ?= -O3 -finline-functions -Wall
  5418. else ifeq ($(PLATFORM),linux)
  5419. CC ?= gcc
  5420. CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
  5421. CXXFLAGS ?= -O3 -finline-functions -Wall
  5422. endif
  5423. ifneq ($(PLATFORM),msys2)
  5424. CFLAGS += -fPIC
  5425. CXXFLAGS += -fPIC
  5426. endif
  5427. CFLAGS += -I"$(ERTS_INCLUDE_DIR)" -I"$(ERL_INTERFACE_INCLUDE_DIR)"
  5428. CXXFLAGS += -I"$(ERTS_INCLUDE_DIR)" -I"$(ERL_INTERFACE_INCLUDE_DIR)"
  5429. LDLIBS += -L"$(ERL_INTERFACE_LIB_DIR)" -lei
  5430. # Verbosity.
  5431. c_verbose_0 = @echo " C " $(filter-out $(notdir $(MAKEFILE_LIST) $(C_SRC_ENV)),$(^F));
  5432. c_verbose = $(c_verbose_$(V))
  5433. cpp_verbose_0 = @echo " CPP " $(filter-out $(notdir $(MAKEFILE_LIST) $(C_SRC_ENV)),$(^F));
  5434. cpp_verbose = $(cpp_verbose_$(V))
  5435. link_verbose_0 = @echo " LD " $(@F);
  5436. link_verbose = $(link_verbose_$(V))
  5437. # Targets.
  5438. ifeq ($(wildcard $(C_SRC_DIR)),)
  5439. else ifneq ($(wildcard $(C_SRC_DIR)/Makefile),)
  5440. app:: app-c_src
  5441. test-build:: app-c_src
  5442. app-c_src:
  5443. $(MAKE) -C $(C_SRC_DIR)
  5444. clean::
  5445. $(MAKE) -C $(C_SRC_DIR) clean
  5446. else
  5447. ifeq ($(SOURCES),)
  5448. SOURCES := $(sort $(foreach pat,*.c *.C *.cc *.cpp,$(call core_find,$(C_SRC_DIR)/,$(pat))))
  5449. endif
  5450. OBJECTS = $(addsuffix .o, $(basename $(SOURCES)))
  5451. COMPILE_C = $(c_verbose) $(CC) $(CFLAGS) $(CPPFLAGS) -c
  5452. COMPILE_CPP = $(cpp_verbose) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c
  5453. app:: $(C_SRC_ENV) $(C_SRC_OUTPUT_FILE)
  5454. test-build:: $(C_SRC_ENV) $(C_SRC_OUTPUT_FILE)
  5455. $(C_SRC_OUTPUT_FILE): $(OBJECTS)
  5456. $(verbose) mkdir -p $(dir $@)
  5457. $(link_verbose) $(CC) $(OBJECTS) \
  5458. $(LDFLAGS) $(if $(filter $(C_SRC_TYPE),shared),-shared) $(LDLIBS) \
  5459. -o $(C_SRC_OUTPUT_FILE)
  5460. $(OBJECTS): $(MAKEFILE_LIST) $(C_SRC_ENV)
  5461. %.o: %.c
  5462. $(COMPILE_C) $(OUTPUT_OPTION) $<
  5463. %.o: %.cc
  5464. $(COMPILE_CPP) $(OUTPUT_OPTION) $<
  5465. %.o: %.C
  5466. $(COMPILE_CPP) $(OUTPUT_OPTION) $<
  5467. %.o: %.cpp
  5468. $(COMPILE_CPP) $(OUTPUT_OPTION) $<
  5469. clean:: clean-c_src
  5470. clean-c_src:
  5471. $(gen_verbose) rm -f $(C_SRC_OUTPUT_FILE) $(OBJECTS)
  5472. endif
  5473. ifneq ($(wildcard $(C_SRC_DIR)),)
  5474. ERL_ERTS_DIR = $(shell $(ERL) -eval 'io:format("~s~n", [code:lib_dir(erts)]), halt().')
  5475. $(C_SRC_ENV):
  5476. $(verbose) $(ERL) -eval "file:write_file(\"$(call core_native_path,$(C_SRC_ENV))\", \
  5477. io_lib:format( \
  5478. \"# Generated by Erlang.mk. Edit at your own risk!~n~n\" \
  5479. \"ERTS_INCLUDE_DIR ?= ~s/erts-~s/include/~n\" \
  5480. \"ERL_INTERFACE_INCLUDE_DIR ?= ~s~n\" \
  5481. \"ERL_INTERFACE_LIB_DIR ?= ~s~n\" \
  5482. \"ERTS_DIR ?= $(ERL_ERTS_DIR)~n\", \
  5483. [code:root_dir(), erlang:system_info(version), \
  5484. code:lib_dir(erl_interface, include), \
  5485. code:lib_dir(erl_interface, lib)])), \
  5486. halt()."
  5487. distclean:: distclean-c_src-env
  5488. distclean-c_src-env:
  5489. $(gen_verbose) rm -f $(C_SRC_ENV)
  5490. -include $(C_SRC_ENV)
  5491. ifneq ($(ERL_ERTS_DIR),$(ERTS_DIR))
  5492. $(shell rm -f $(C_SRC_ENV))
  5493. endif
  5494. endif
  5495. # Templates.
  5496. define bs_c_nif
  5497. #include "erl_nif.h"
  5498. static int loads = 0;
  5499. static int load(ErlNifEnv* env, void** priv_data, ERL_NIF_TERM load_info)
  5500. {
  5501. /* Initialize private data. */
  5502. *priv_data = NULL;
  5503. loads++;
  5504. return 0;
  5505. }
  5506. static int upgrade(ErlNifEnv* env, void** priv_data, void** old_priv_data, ERL_NIF_TERM load_info)
  5507. {
  5508. /* Convert the private data to the new version. */
  5509. *priv_data = *old_priv_data;
  5510. loads++;
  5511. return 0;
  5512. }
  5513. static void unload(ErlNifEnv* env, void* priv_data)
  5514. {
  5515. if (loads == 1) {
  5516. /* Destroy the private data. */
  5517. }
  5518. loads--;
  5519. }
  5520. static ERL_NIF_TERM hello(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
  5521. {
  5522. if (enif_is_atom(env, argv[0])) {
  5523. return enif_make_tuple2(env,
  5524. enif_make_atom(env, "hello"),
  5525. argv[0]);
  5526. }
  5527. return enif_make_tuple2(env,
  5528. enif_make_atom(env, "error"),
  5529. enif_make_atom(env, "badarg"));
  5530. }
  5531. static ErlNifFunc nif_funcs[] = {
  5532. {"hello", 1, hello}
  5533. };
  5534. ERL_NIF_INIT($n, nif_funcs, load, NULL, upgrade, unload)
  5535. endef
  5536. define bs_erl_nif
  5537. -module($n).
  5538. -export([hello/1]).
  5539. -on_load(on_load/0).
  5540. on_load() ->
  5541. PrivDir = case code:priv_dir(?MODULE) of
  5542. {error, _} ->
  5543. AppPath = filename:dirname(filename:dirname(code:which(?MODULE))),
  5544. filename:join(AppPath, "priv");
  5545. Path ->
  5546. Path
  5547. end,
  5548. erlang:load_nif(filename:join(PrivDir, atom_to_list(?MODULE)), 0).
  5549. hello(_) ->
  5550. erlang:nif_error({not_loaded, ?MODULE}).
  5551. endef
  5552. new-nif:
  5553. ifneq ($(wildcard $(C_SRC_DIR)/$n.c),)
  5554. $(error Error: $(C_SRC_DIR)/$n.c already exists)
  5555. endif
  5556. ifneq ($(wildcard src/$n.erl),)
  5557. $(error Error: src/$n.erl already exists)
  5558. endif
  5559. ifndef n
  5560. $(error Usage: $(MAKE) new-nif n=NAME [in=APP])
  5561. endif
  5562. ifdef in
  5563. $(verbose) $(MAKE) -C $(APPS_DIR)/$(in)/ new-nif n=$n in=
  5564. else
  5565. $(verbose) mkdir -p $(C_SRC_DIR) src/
  5566. $(verbose) $(call core_render,bs_c_nif,$(C_SRC_DIR)/$n.c)
  5567. $(verbose) $(call core_render,bs_erl_nif,src/$n.erl)
  5568. endif
  5569. # Copyright (c) 2015-2017, Loïc Hoguin <essen@ninenines.eu>
  5570. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5571. .PHONY: ci ci-prepare ci-setup
  5572. CI_OTP ?=
  5573. CI_HIPE ?=
  5574. CI_ERLLVM ?=
  5575. ifeq ($(CI_VM),native)
  5576. ERLC_OPTS += +native
  5577. TEST_ERLC_OPTS += +native
  5578. else ifeq ($(CI_VM),erllvm)
  5579. ERLC_OPTS += +native +'{hipe, [to_llvm]}'
  5580. TEST_ERLC_OPTS += +native +'{hipe, [to_llvm]}'
  5581. endif
  5582. ifeq ($(strip $(CI_OTP) $(CI_HIPE) $(CI_ERLLVM)),)
  5583. ci::
  5584. else
  5585. ci:: $(addprefix ci-,$(CI_OTP) $(addsuffix -native,$(CI_HIPE)) $(addsuffix -erllvm,$(CI_ERLLVM)))
  5586. ci-prepare: $(addprefix $(KERL_INSTALL_DIR)/,$(CI_OTP) $(addsuffix -native,$(CI_HIPE)))
  5587. ci-setup::
  5588. $(verbose) :
  5589. ci-extra::
  5590. $(verbose) :
  5591. ci_verbose_0 = @echo " CI " $(1);
  5592. ci_verbose = $(ci_verbose_$(V))
  5593. define ci_target
  5594. ci-$1: $(KERL_INSTALL_DIR)/$2
  5595. $(verbose) $(MAKE) --no-print-directory clean
  5596. $(ci_verbose) \
  5597. PATH="$(KERL_INSTALL_DIR)/$2/bin:$(PATH)" \
  5598. CI_OTP_RELEASE="$1" \
  5599. CT_OPTS="-label $1" \
  5600. CI_VM="$3" \
  5601. $(MAKE) ci-setup tests
  5602. $(verbose) $(MAKE) --no-print-directory ci-extra
  5603. endef
  5604. $(foreach otp,$(CI_OTP),$(eval $(call ci_target,$(otp),$(otp),otp)))
  5605. $(foreach otp,$(CI_HIPE),$(eval $(call ci_target,$(otp)-native,$(otp)-native,native)))
  5606. $(foreach otp,$(CI_ERLLVM),$(eval $(call ci_target,$(otp)-erllvm,$(otp)-native,erllvm)))
  5607. $(foreach otp,$(filter-out $(ERLANG_OTP),$(CI_OTP)),$(eval $(call kerl_otp_target,$(otp))))
  5608. $(foreach otp,$(filter-out $(ERLANG_HIPE),$(sort $(CI_HIPE) $(CI_ERLLLVM))),$(eval $(call kerl_hipe_target,$(otp))))
  5609. help::
  5610. $(verbose) printf "%s\n" "" \
  5611. "Continuous Integration targets:" \
  5612. " ci Run '$(MAKE) tests' on all configured Erlang versions." \
  5613. "" \
  5614. "The CI_OTP variable must be defined with the Erlang versions" \
  5615. "that must be tested. For example: CI_OTP = OTP-17.3.4 OTP-17.5.3"
  5616. endif
  5617. # Copyright (c) 2020, Loïc Hoguin <essen@ninenines.eu>
  5618. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5619. ifdef CONCUERROR_TESTS
  5620. .PHONY: concuerror distclean-concuerror
  5621. # Configuration
  5622. CONCUERROR_LOGS_DIR ?= $(CURDIR)/logs
  5623. CONCUERROR_OPTS ?=
  5624. # Core targets.
  5625. check:: concuerror
  5626. ifndef KEEP_LOGS
  5627. distclean:: distclean-concuerror
  5628. endif
  5629. # Plugin-specific targets.
  5630. $(ERLANG_MK_TMP)/Concuerror/bin/concuerror: | $(ERLANG_MK_TMP)
  5631. $(verbose) git clone https://github.com/parapluu/Concuerror $(ERLANG_MK_TMP)/Concuerror
  5632. $(verbose) $(MAKE) -C $(ERLANG_MK_TMP)/Concuerror
  5633. $(CONCUERROR_LOGS_DIR):
  5634. $(verbose) mkdir -p $(CONCUERROR_LOGS_DIR)
  5635. define concuerror_html_report
  5636. <!DOCTYPE html>
  5637. <html lang="en">
  5638. <head>
  5639. <meta charset="utf-8">
  5640. <title>Concuerror HTML report</title>
  5641. </head>
  5642. <body>
  5643. <h1>Concuerror HTML report</h1>
  5644. <p>Generated on $(concuerror_date)</p>
  5645. <ul>
  5646. $(foreach t,$(concuerror_targets),<li><a href="$(t).txt">$(t)</a></li>)
  5647. </ul>
  5648. </body>
  5649. </html>
  5650. endef
  5651. concuerror: $(addprefix concuerror-,$(subst :,-,$(CONCUERROR_TESTS)))
  5652. $(eval concuerror_date := $(shell date))
  5653. $(eval concuerror_targets := $^)
  5654. $(verbose) $(call core_render,concuerror_html_report,$(CONCUERROR_LOGS_DIR)/concuerror.html)
  5655. define concuerror_target
  5656. .PHONY: concuerror-$1-$2
  5657. concuerror-$1-$2: test-build | $(ERLANG_MK_TMP)/Concuerror/bin/concuerror $(CONCUERROR_LOGS_DIR)
  5658. $(ERLANG_MK_TMP)/Concuerror/bin/concuerror \
  5659. --pa $(CURDIR)/ebin --pa $(TEST_DIR) \
  5660. -o $(CONCUERROR_LOGS_DIR)/concuerror-$1-$2.txt \
  5661. $$(CONCUERROR_OPTS) -m $1 -t $2
  5662. endef
  5663. $(foreach test,$(CONCUERROR_TESTS),$(eval $(call concuerror_target,$(firstword $(subst :, ,$(test))),$(lastword $(subst :, ,$(test))))))
  5664. distclean-concuerror:
  5665. $(gen_verbose) rm -rf $(CONCUERROR_LOGS_DIR)
  5666. endif
  5667. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  5668. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5669. .PHONY: ct apps-ct distclean-ct
  5670. # Configuration.
  5671. CT_OPTS ?=
  5672. ifneq ($(wildcard $(TEST_DIR)),)
  5673. ifndef CT_SUITES
  5674. CT_SUITES := $(sort $(subst _SUITE.erl,,$(notdir $(call core_find,$(TEST_DIR)/,*_SUITE.erl))))
  5675. endif
  5676. endif
  5677. CT_SUITES ?=
  5678. CT_LOGS_DIR ?= $(CURDIR)/logs
  5679. # Core targets.
  5680. tests:: ct
  5681. ifndef KEEP_LOGS
  5682. distclean:: distclean-ct
  5683. endif
  5684. help::
  5685. $(verbose) printf "%s\n" "" \
  5686. "Common_test targets:" \
  5687. " ct Run all the common_test suites for this project" \
  5688. "" \
  5689. "All your common_test suites have their associated targets." \
  5690. "A suite named http_SUITE can be ran using the ct-http target."
  5691. # Plugin-specific targets.
  5692. CT_RUN = ct_run \
  5693. -no_auto_compile \
  5694. -noinput \
  5695. -pa $(CURDIR)/ebin $(TEST_DIR) \
  5696. -dir $(TEST_DIR) \
  5697. -logdir $(CT_LOGS_DIR)
  5698. ifeq ($(CT_SUITES),)
  5699. ct: $(if $(IS_APP)$(ROOT_DIR),,apps-ct)
  5700. else
  5701. # We do not run tests if we are in an apps/* with no test directory.
  5702. ifneq ($(IS_APP)$(wildcard $(TEST_DIR)),1)
  5703. ct: test-build $(if $(IS_APP)$(ROOT_DIR),,apps-ct)
  5704. $(verbose) mkdir -p $(CT_LOGS_DIR)
  5705. $(gen_verbose) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(CT_SUITES)) $(CT_OPTS)
  5706. endif
  5707. endif
  5708. ifneq ($(ALL_APPS_DIRS),)
  5709. define ct_app_target
  5710. apps-ct-$1: test-build
  5711. $$(MAKE) -C $1 ct IS_APP=1
  5712. endef
  5713. $(foreach app,$(ALL_APPS_DIRS),$(eval $(call ct_app_target,$(app))))
  5714. apps-ct: $(addprefix apps-ct-,$(ALL_APPS_DIRS))
  5715. endif
  5716. ifdef t
  5717. ifeq (,$(findstring :,$t))
  5718. CT_EXTRA = -group $t
  5719. else
  5720. t_words = $(subst :, ,$t)
  5721. CT_EXTRA = -group $(firstword $(t_words)) -case $(lastword $(t_words))
  5722. endif
  5723. else
  5724. ifdef c
  5725. CT_EXTRA = -case $c
  5726. else
  5727. CT_EXTRA =
  5728. endif
  5729. endif
  5730. define ct_suite_target
  5731. ct-$(1): test-build
  5732. $(verbose) mkdir -p $(CT_LOGS_DIR)
  5733. $(gen_verbose_esc) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(1)) $(CT_EXTRA) $(CT_OPTS)
  5734. endef
  5735. $(foreach test,$(CT_SUITES),$(eval $(call ct_suite_target,$(test))))
  5736. distclean-ct:
  5737. $(gen_verbose) rm -rf $(CT_LOGS_DIR)
  5738. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  5739. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5740. .PHONY: plt distclean-plt dialyze
  5741. # Configuration.
  5742. DIALYZER_PLT ?= $(CURDIR)/.$(PROJECT).plt
  5743. export DIALYZER_PLT
  5744. PLT_APPS ?=
  5745. DIALYZER_DIRS ?= --src -r $(wildcard src) $(ALL_APPS_DIRS)
  5746. DIALYZER_OPTS ?= -Werror_handling -Wunmatched_returns # -Wunderspecs
  5747. DIALYZER_PLT_OPTS ?=
  5748. # Core targets.
  5749. check:: dialyze
  5750. distclean:: distclean-plt
  5751. help::
  5752. $(verbose) printf "%s\n" "" \
  5753. "Dialyzer targets:" \
  5754. " plt Build a PLT file for this project" \
  5755. " dialyze Analyze the project using Dialyzer"
  5756. # Plugin-specific targets.
  5757. define filter_opts.erl
  5758. Opts = init:get_plain_arguments(),
  5759. {Filtered, _} = lists:foldl(fun
  5760. (O, {Os, true}) -> {[O|Os], false};
  5761. (O = "-D", {Os, _}) -> {[O|Os], true};
  5762. (O = [\\$$-, \\$$D, _ | _], {Os, _}) -> {[O|Os], false};
  5763. (O = "-I", {Os, _}) -> {[O|Os], true};
  5764. (O = [\\$$-, \\$$I, _ | _], {Os, _}) -> {[O|Os], false};
  5765. (O = "-pa", {Os, _}) -> {[O|Os], true};
  5766. (_, Acc) -> Acc
  5767. end, {[], false}, Opts),
  5768. io:format("~s~n", [string:join(lists:reverse(Filtered), " ")]),
  5769. halt().
  5770. endef
  5771. # DIALYZER_PLT is a variable understood directly by Dialyzer.
  5772. #
  5773. # We append the path to erts at the end of the PLT. This works
  5774. # because the PLT file is in the external term format and the
  5775. # function binary_to_term/1 ignores any trailing data.
  5776. $(DIALYZER_PLT): deps app
  5777. $(eval DEPS_LOG := $(shell test -f $(ERLANG_MK_TMP)/deps.log && \
  5778. while read p; do test -d $$p/ebin && echo $$p/ebin; done <$(ERLANG_MK_TMP)/deps.log))
  5779. $(verbose) dialyzer --build_plt $(DIALYZER_PLT_OPTS) --apps \
  5780. erts kernel stdlib $(PLT_APPS) $(OTP_DEPS) $(LOCAL_DEPS) $(DEPS_LOG) || test $$? -eq 2
  5781. $(verbose) $(ERL) -eval 'io:format("~n~s~n", [code:lib_dir(erts)]), halt().' >> $@
  5782. plt: $(DIALYZER_PLT)
  5783. distclean-plt:
  5784. $(gen_verbose) rm -f $(DIALYZER_PLT)
  5785. ifneq ($(wildcard $(DIALYZER_PLT)),)
  5786. dialyze: $(if $(filter --src,$(DIALYZER_DIRS)),,deps app)
  5787. $(verbose) if ! tail -n1 $(DIALYZER_PLT) | \
  5788. grep -q "^`$(ERL) -eval 'io:format("~s", [code:lib_dir(erts)]), halt().'`$$"; then \
  5789. rm $(DIALYZER_PLT); \
  5790. $(MAKE) plt; \
  5791. fi
  5792. else
  5793. dialyze: $(DIALYZER_PLT)
  5794. endif
  5795. $(verbose) dialyzer --no_native `$(ERL) \
  5796. -eval "$(subst $(newline),,$(call escape_dquotes,$(call filter_opts.erl)))" \
  5797. -extra $(ERLC_OPTS)` $(DIALYZER_DIRS) $(DIALYZER_OPTS) $(if $(wildcard ebin/),-pa ebin/)
  5798. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  5799. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5800. .PHONY: distclean-edoc edoc
  5801. # Configuration.
  5802. EDOC_OPTS ?=
  5803. EDOC_SRC_DIRS ?=
  5804. EDOC_OUTPUT ?= doc
  5805. define edoc.erl
  5806. SrcPaths = lists:foldl(fun(P, Acc) ->
  5807. filelib:wildcard(atom_to_list(P) ++ "/{src,c_src}") ++ Acc
  5808. end, [], [$(call comma_list,$(patsubst %,'%',$(call core_native_path,$(EDOC_SRC_DIRS))))]),
  5809. DefaultOpts = [{dir, "$(EDOC_OUTPUT)"}, {source_path, SrcPaths}, {subpackages, false}],
  5810. edoc:application($(1), ".", [$(2)] ++ DefaultOpts),
  5811. halt(0).
  5812. endef
  5813. # Core targets.
  5814. ifneq ($(strip $(EDOC_SRC_DIRS)$(wildcard doc/overview.edoc)),)
  5815. docs:: edoc
  5816. endif
  5817. distclean:: distclean-edoc
  5818. # Plugin-specific targets.
  5819. edoc: distclean-edoc doc-deps
  5820. $(gen_verbose) $(call erlang,$(call edoc.erl,$(PROJECT),$(EDOC_OPTS)))
  5821. distclean-edoc:
  5822. $(gen_verbose) rm -f $(EDOC_OUTPUT)/*.css $(EDOC_OUTPUT)/*.html $(EDOC_OUTPUT)/*.png $(EDOC_OUTPUT)/edoc-info
  5823. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  5824. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5825. # Configuration.
  5826. DTL_FULL_PATH ?=
  5827. DTL_PATH ?= templates/
  5828. DTL_PREFIX ?=
  5829. DTL_SUFFIX ?= _dtl
  5830. DTL_OPTS ?=
  5831. # Verbosity.
  5832. dtl_verbose_0 = @echo " DTL " $(filter %.dtl,$(?F));
  5833. dtl_verbose = $(dtl_verbose_$(V))
  5834. # Core targets.
  5835. DTL_PATH := $(abspath $(DTL_PATH))
  5836. DTL_FILES := $(sort $(call core_find,$(DTL_PATH),*.dtl))
  5837. ifneq ($(DTL_FILES),)
  5838. DTL_NAMES = $(addprefix $(DTL_PREFIX),$(addsuffix $(DTL_SUFFIX),$(DTL_FILES:$(DTL_PATH)/%.dtl=%)))
  5839. DTL_MODULES = $(if $(DTL_FULL_PATH),$(subst /,_,$(DTL_NAMES)),$(notdir $(DTL_NAMES)))
  5840. BEAM_FILES += $(addsuffix .beam,$(addprefix ebin/,$(DTL_MODULES)))
  5841. ifneq ($(words $(DTL_FILES)),0)
  5842. # Rebuild templates when the Makefile changes.
  5843. $(ERLANG_MK_TMP)/last-makefile-change-erlydtl: $(MAKEFILE_LIST) | $(ERLANG_MK_TMP)
  5844. $(verbose) if test -f $@; then \
  5845. touch $(DTL_FILES); \
  5846. fi
  5847. $(verbose) touch $@
  5848. ebin/$(PROJECT).app:: $(ERLANG_MK_TMP)/last-makefile-change-erlydtl
  5849. endif
  5850. define erlydtl_compile.erl
  5851. [begin
  5852. Module0 = case "$(strip $(DTL_FULL_PATH))" of
  5853. "" ->
  5854. filename:basename(F, ".dtl");
  5855. _ ->
  5856. "$(call core_native_path,$(DTL_PATH))/" ++ F2 = filename:rootname(F, ".dtl"),
  5857. re:replace(F2, "/", "_", [{return, list}, global])
  5858. end,
  5859. Module = list_to_atom("$(DTL_PREFIX)" ++ string:to_lower(Module0) ++ "$(DTL_SUFFIX)"),
  5860. case erlydtl:compile(F, Module, [$(DTL_OPTS)] ++ [{out_dir, "ebin/"}, return_errors]) of
  5861. ok -> ok;
  5862. {ok, _} -> ok
  5863. end
  5864. end || F <- string:tokens("$(1)", " ")],
  5865. halt().
  5866. endef
  5867. ebin/$(PROJECT).app:: $(DTL_FILES) | ebin/
  5868. $(if $(strip $?),\
  5869. $(dtl_verbose) $(call erlang,$(call erlydtl_compile.erl,$(call core_native_path,$?)),\
  5870. -pa ebin/))
  5871. endif
  5872. # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
  5873. # Copyright (c) 2014, Dave Cottlehuber <dch@skunkwerks.at>
  5874. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5875. .PHONY: distclean-escript escript escript-zip
  5876. # Configuration.
  5877. ESCRIPT_NAME ?= $(PROJECT)
  5878. ESCRIPT_FILE ?= $(ESCRIPT_NAME)
  5879. ESCRIPT_SHEBANG ?= /usr/bin/env escript
  5880. ESCRIPT_COMMENT ?= This is an -*- erlang -*- file
  5881. ESCRIPT_EMU_ARGS ?= -escript main $(ESCRIPT_NAME)
  5882. ESCRIPT_ZIP ?= 7z a -tzip -mx=9 -mtc=off $(if $(filter-out 0,$(V)),,> /dev/null)
  5883. ESCRIPT_ZIP_FILE ?= $(ERLANG_MK_TMP)/escript.zip
  5884. # Core targets.
  5885. distclean:: distclean-escript
  5886. help::
  5887. $(verbose) printf "%s\n" "" \
  5888. "Escript targets:" \
  5889. " escript Build an executable escript archive" \
  5890. # Plugin-specific targets.
  5891. escript-zip:: FULL=1
  5892. escript-zip:: deps app
  5893. $(verbose) mkdir -p $(dir $(ESCRIPT_ZIP))
  5894. $(verbose) rm -f $(ESCRIPT_ZIP_FILE)
  5895. $(gen_verbose) cd .. && $(ESCRIPT_ZIP) $(ESCRIPT_ZIP_FILE) $(PROJECT)/ebin/*
  5896. ifneq ($(DEPS),)
  5897. $(verbose) cd $(DEPS_DIR) && $(ESCRIPT_ZIP) $(ESCRIPT_ZIP_FILE) \
  5898. $(subst $(DEPS_DIR)/,,$(addsuffix /*,$(wildcard \
  5899. $(addsuffix /ebin,$(shell cat $(ERLANG_MK_TMP)/deps.log)))))
  5900. endif
  5901. escript:: escript-zip
  5902. $(gen_verbose) printf "%s\n" \
  5903. "#!$(ESCRIPT_SHEBANG)" \
  5904. "%% $(ESCRIPT_COMMENT)" \
  5905. "%%! $(ESCRIPT_EMU_ARGS)" > $(ESCRIPT_FILE)
  5906. $(verbose) cat $(ESCRIPT_ZIP_FILE) >> $(ESCRIPT_FILE)
  5907. $(verbose) chmod +x $(ESCRIPT_FILE)
  5908. distclean-escript:
  5909. $(gen_verbose) rm -f $(ESCRIPT_FILE)
  5910. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  5911. # Copyright (c) 2014, Enrique Fernandez <enrique.fernandez@erlang-solutions.com>
  5912. # This file is contributed to erlang.mk and subject to the terms of the ISC License.
  5913. .PHONY: eunit apps-eunit
  5914. # Configuration
  5915. EUNIT_OPTS ?=
  5916. EUNIT_ERL_OPTS ?=
  5917. # Core targets.
  5918. tests:: eunit
  5919. help::
  5920. $(verbose) printf "%s\n" "" \
  5921. "EUnit targets:" \
  5922. " eunit Run all the EUnit tests for this project"
  5923. # Plugin-specific targets.
  5924. define eunit.erl
  5925. $(call cover.erl)
  5926. CoverSetup(),
  5927. case eunit:test($1, [$(EUNIT_OPTS)]) of
  5928. ok -> ok;
  5929. error -> halt(2)
  5930. end,
  5931. CoverExport("$(call core_native_path,$(COVER_DATA_DIR))/eunit.coverdata"),
  5932. halt()
  5933. endef
  5934. EUNIT_ERL_OPTS += -pa $(TEST_DIR) $(CURDIR)/ebin
  5935. ifdef t
  5936. ifeq (,$(findstring :,$(t)))
  5937. eunit: test-build cover-data-dir
  5938. $(gen_verbose) $(call erlang,$(call eunit.erl,['$(t)']),$(EUNIT_ERL_OPTS))
  5939. else
  5940. eunit: test-build cover-data-dir
  5941. $(gen_verbose) $(call erlang,$(call eunit.erl,fun $(t)/0),$(EUNIT_ERL_OPTS))
  5942. endif
  5943. else
  5944. EUNIT_EBIN_MODS = $(notdir $(basename $(ERL_FILES) $(BEAM_FILES)))
  5945. EUNIT_TEST_MODS = $(notdir $(basename $(call core_find,$(TEST_DIR)/,*.erl)))
  5946. EUNIT_MODS = $(foreach mod,$(EUNIT_EBIN_MODS) $(filter-out \
  5947. $(patsubst %,%_tests,$(EUNIT_EBIN_MODS)),$(EUNIT_TEST_MODS)),'$(mod)')
  5948. eunit: test-build $(if $(IS_APP)$(ROOT_DIR),,apps-eunit) cover-data-dir
  5949. ifneq ($(wildcard src/ $(TEST_DIR)),)
  5950. $(gen_verbose) $(call erlang,$(call eunit.erl,[$(call comma_list,$(EUNIT_MODS))]),$(EUNIT_ERL_OPTS))
  5951. endif
  5952. ifneq ($(ALL_APPS_DIRS),)
  5953. apps-eunit: test-build
  5954. $(verbose) eunit_retcode=0 ; for app in $(ALL_APPS_DIRS); do $(MAKE) -C $$app eunit IS_APP=1; \
  5955. [ $$? -ne 0 ] && eunit_retcode=1 ; done ; \
  5956. exit $$eunit_retcode
  5957. endif
  5958. endif
  5959. # Copyright (c) 2020, Loïc Hoguin <essen@ninenines.eu>
  5960. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5961. HEX_CORE_GIT ?= https://github.com/hexpm/hex_core
  5962. HEX_CORE_COMMIT ?= v0.7.0
  5963. PACKAGES += hex_core
  5964. pkg_hex_core_name = hex_core
  5965. pkg_hex_core_description = Reference implementation of Hex specifications
  5966. pkg_hex_core_homepage = $(HEX_CORE_GIT)
  5967. pkg_hex_core_fetch = git
  5968. pkg_hex_core_repo = $(HEX_CORE_GIT)
  5969. pkg_hex_core_commit = $(HEX_CORE_COMMIT)
  5970. # We automatically depend on hex_core when the project isn't already.
  5971. $(if $(filter hex_core,$(DEPS) $(BUILD_DEPS) $(DOC_DEPS) $(REL_DEPS) $(TEST_DEPS)),,\
  5972. $(eval $(call dep_target,hex_core)))
  5973. hex-core: $(DEPS_DIR)/hex_core
  5974. $(verbose) if [ ! -e $(DEPS_DIR)/hex_core/ebin/dep_built ]; then \
  5975. $(MAKE) -C $(DEPS_DIR)/hex_core IS_DEP=1; \
  5976. touch $(DEPS_DIR)/hex_core/ebin/dep_built; \
  5977. fi
  5978. # @todo This must also apply to fetching.
  5979. HEX_CONFIG ?=
  5980. define hex_config.erl
  5981. begin
  5982. Config0 = hex_core:default_config(),
  5983. Config0$(HEX_CONFIG)
  5984. end
  5985. endef
  5986. define hex_user_create.erl
  5987. {ok, _} = application:ensure_all_started(ssl),
  5988. {ok, _} = application:ensure_all_started(inets),
  5989. Config = $(hex_config.erl),
  5990. case hex_api_user:create(Config, <<"$(strip $1)">>, <<"$(strip $2)">>, <<"$(strip $3)">>) of
  5991. {ok, {201, _, #{<<"email">> := Email, <<"url">> := URL, <<"username">> := Username}}} ->
  5992. io:format("User ~s (~s) created at ~s~n"
  5993. "Please check your inbox for a confirmation email.~n"
  5994. "You must confirm before you are allowed to publish packages.~n",
  5995. [Username, Email, URL]),
  5996. halt(0);
  5997. {ok, {Status, _, Errors}} ->
  5998. io:format("Error ~b: ~0p~n", [Status, Errors]),
  5999. halt(80)
  6000. end
  6001. endef
  6002. # The $(info ) call inserts a new line after the password prompt.
  6003. hex-user-create: hex-core
  6004. $(if $(HEX_USERNAME),,$(eval HEX_USERNAME := $(shell read -p "Username: " username; echo $$username)))
  6005. $(if $(HEX_PASSWORD),,$(eval HEX_PASSWORD := $(shell stty -echo; read -p "Password: " password; stty echo; echo $$password) $(info )))
  6006. $(if $(HEX_EMAIL),,$(eval HEX_EMAIL := $(shell read -p "Email: " email; echo $$email)))
  6007. $(gen_verbose) $(call erlang,$(call hex_user_create.erl,$(HEX_USERNAME),$(HEX_PASSWORD),$(HEX_EMAIL)))
  6008. define hex_key_add.erl
  6009. {ok, _} = application:ensure_all_started(ssl),
  6010. {ok, _} = application:ensure_all_started(inets),
  6011. Config = $(hex_config.erl),
  6012. ConfigF = Config#{api_key => iolist_to_binary([<<"Basic ">>, base64:encode(<<"$(strip $1):$(strip $2)">>)])},
  6013. Permissions = [
  6014. case string:split(P, <<":">>) of
  6015. [D] -> #{domain => D};
  6016. [D, R] -> #{domain => D, resource => R}
  6017. end
  6018. || P <- string:split(<<"$(strip $4)">>, <<",">>, all)],
  6019. case hex_api_key:add(ConfigF, <<"$(strip $3)">>, Permissions) of
  6020. {ok, {201, _, #{<<"secret">> := Secret}}} ->
  6021. io:format("Key ~s created for user ~s~nSecret: ~s~n"
  6022. "Please store the secret in a secure location, such as a password store.~n"
  6023. "The secret will be requested for most Hex-related operations.~n",
  6024. [<<"$(strip $3)">>, <<"$(strip $1)">>, Secret]),
  6025. halt(0);
  6026. {ok, {Status, _, Errors}} ->
  6027. io:format("Error ~b: ~0p~n", [Status, Errors]),
  6028. halt(81)
  6029. end
  6030. endef
  6031. hex-key-add: hex-core
  6032. $(if $(HEX_USERNAME),,$(eval HEX_USERNAME := $(shell read -p "Username: " username; echo $$username)))
  6033. $(if $(HEX_PASSWORD),,$(eval HEX_PASSWORD := $(shell stty -echo; read -p "Password: " password; stty echo; echo $$password) $(info )))
  6034. $(gen_verbose) $(call erlang,$(call hex_key_add.erl,$(HEX_USERNAME),$(HEX_PASSWORD),\
  6035. $(if $(name),$(name),$(shell hostname)-erlang-mk),\
  6036. $(if $(perm),$(perm),api)))
  6037. HEX_TARBALL_EXTRA_METADATA ?=
  6038. # @todo Check that we can += files
  6039. HEX_TARBALL_FILES ?= \
  6040. $(wildcard early-plugins.mk) \
  6041. $(wildcard ebin/$(PROJECT).app) \
  6042. $(wildcard ebin/$(PROJECT).appup) \
  6043. $(wildcard $(notdir $(ERLANG_MK_FILENAME))) \
  6044. $(sort $(call core_find,include/,*.hrl)) \
  6045. $(wildcard LICENSE*) \
  6046. $(wildcard Makefile) \
  6047. $(wildcard plugins.mk) \
  6048. $(sort $(call core_find,priv/,*)) \
  6049. $(wildcard README*) \
  6050. $(wildcard rebar.config) \
  6051. $(sort $(call core_find,src/,*))
  6052. HEX_TARBALL_OUTPUT_FILE ?= $(ERLANG_MK_TMP)/$(PROJECT).tar
  6053. # @todo Need to check for rebar.config and/or the absence of DEPS to know
  6054. # whether a project will work with Rebar.
  6055. #
  6056. # @todo contributors licenses links in HEX_TARBALL_EXTRA_METADATA
  6057. # In order to build the requirements metadata we look into DEPS.
  6058. # We do not require that the project use Hex dependencies, however
  6059. # Hex.pm does require that the package name and version numbers
  6060. # correspond to a real Hex package.
  6061. define hex_tarball_create.erl
  6062. Files0 = [$(call comma_list,$(patsubst %,"%",$(HEX_TARBALL_FILES)))],
  6063. Requirements0 = #{
  6064. $(foreach d,$(DEPS),
  6065. <<"$(if $(subst hex,,$(call query_fetch_method,$d)),$d,$(if $(word 3,$(dep_$d)),$(word 3,$(dep_$d)),$d))">> => #{
  6066. <<"app">> => <<"$d">>,
  6067. <<"optional">> => false,
  6068. <<"requirement">> => <<"$(call query_version,$d)">>
  6069. },)
  6070. $(if $(DEPS),dummy => dummy)
  6071. },
  6072. Requirements = maps:remove(dummy, Requirements0),
  6073. Metadata0 = #{
  6074. app => <<"$(strip $(PROJECT))">>,
  6075. build_tools => [<<"make">>, <<"rebar3">>],
  6076. description => <<"$(strip $(PROJECT_DESCRIPTION))">>,
  6077. files => [unicode:characters_to_binary(F) || F <- Files0],
  6078. name => <<"$(strip $(PROJECT))">>,
  6079. requirements => Requirements,
  6080. version => <<"$(strip $(PROJECT_VERSION))">>
  6081. },
  6082. Metadata = Metadata0$(HEX_TARBALL_EXTRA_METADATA),
  6083. Files = [case file:read_file(F) of
  6084. {ok, Bin} ->
  6085. {F, Bin};
  6086. {error, Reason} ->
  6087. io:format("Error trying to open file ~0p: ~0p~n", [F, Reason]),
  6088. halt(82)
  6089. end || F <- Files0],
  6090. case hex_tarball:create(Metadata, Files) of
  6091. {ok, #{tarball := Tarball}} ->
  6092. ok = file:write_file("$(strip $(HEX_TARBALL_OUTPUT_FILE))", Tarball),
  6093. halt(0);
  6094. {error, Reason} ->
  6095. io:format("Error ~0p~n", [Reason]),
  6096. halt(83)
  6097. end
  6098. endef
  6099. hex_tar_verbose_0 = @echo " TAR $(notdir $(ERLANG_MK_TMP))/$(@F)";
  6100. hex_tar_verbose_2 = set -x;
  6101. hex_tar_verbose = $(hex_tar_verbose_$(V))
  6102. $(HEX_TARBALL_OUTPUT_FILE): hex-core app
  6103. $(hex_tar_verbose) $(call erlang,$(call hex_tarball_create.erl))
  6104. hex-tarball-create: $(HEX_TARBALL_OUTPUT_FILE)
  6105. define hex_release_publish_summary.erl
  6106. {ok, Tarball} = erl_tar:open("$(strip $(HEX_TARBALL_OUTPUT_FILE))", [read]),
  6107. ok = erl_tar:extract(Tarball, [{cwd, "$(ERLANG_MK_TMP)"}, {files, ["metadata.config"]}]),
  6108. {ok, Metadata} = file:consult("$(ERLANG_MK_TMP)/metadata.config"),
  6109. #{
  6110. <<"name">> := Name,
  6111. <<"version">> := Version,
  6112. <<"files">> := Files,
  6113. <<"requirements">> := Deps
  6114. } = maps:from_list(Metadata),
  6115. io:format("Publishing ~s ~s~n Dependencies:~n", [Name, Version]),
  6116. case Deps of
  6117. [] ->
  6118. io:format(" (none)~n");
  6119. _ ->
  6120. [begin
  6121. #{<<"app">> := DA, <<"requirement">> := DR} = maps:from_list(D),
  6122. io:format(" ~s ~s~n", [DA, DR])
  6123. end || {_, D} <- Deps]
  6124. end,
  6125. io:format(" Included files:~n"),
  6126. [io:format(" ~s~n", [F]) || F <- Files],
  6127. io:format("You may also review the contents of the tarball file.~n"
  6128. "Please enter your secret key to proceed.~n"),
  6129. halt(0)
  6130. endef
  6131. define hex_release_publish.erl
  6132. {ok, _} = application:ensure_all_started(ssl),
  6133. {ok, _} = application:ensure_all_started(inets),
  6134. Config = $(hex_config.erl),
  6135. ConfigF = Config#{api_key => <<"$(strip $1)">>},
  6136. {ok, Tarball} = file:read_file("$(strip $(HEX_TARBALL_OUTPUT_FILE))"),
  6137. case hex_api_release:publish(ConfigF, Tarball, [{replace, $2}]) of
  6138. {ok, {200, _, #{}}} ->
  6139. io:format("Release replaced~n"),
  6140. halt(0);
  6141. {ok, {201, _, #{}}} ->
  6142. io:format("Release published~n"),
  6143. halt(0);
  6144. {ok, {Status, _, Errors}} ->
  6145. io:format("Error ~b: ~0p~n", [Status, Errors]),
  6146. halt(84)
  6147. end
  6148. endef
  6149. hex-release-tarball: hex-core $(HEX_TARBALL_OUTPUT_FILE)
  6150. $(verbose) $(call erlang,$(call hex_release_publish_summary.erl))
  6151. hex-release-publish: hex-core hex-release-tarball
  6152. $(if $(HEX_SECRET),,$(eval HEX_SECRET := $(shell stty -echo; read -p "Secret: " secret; stty echo; echo $$secret) $(info )))
  6153. $(gen_verbose) $(call erlang,$(call hex_release_publish.erl,$(HEX_SECRET),false))
  6154. hex-release-replace: hex-core hex-release-tarball
  6155. $(if $(HEX_SECRET),,$(eval HEX_SECRET := $(shell stty -echo; read -p "Secret: " secret; stty echo; echo $$secret) $(info )))
  6156. $(gen_verbose) $(call erlang,$(call hex_release_publish.erl,$(HEX_SECRET),true))
  6157. define hex_release_delete.erl
  6158. {ok, _} = application:ensure_all_started(ssl),
  6159. {ok, _} = application:ensure_all_started(inets),
  6160. Config = $(hex_config.erl),
  6161. ConfigF = Config#{api_key => <<"$(strip $1)">>},
  6162. case hex_api_release:delete(ConfigF, <<"$(strip $(PROJECT))">>, <<"$(strip $(PROJECT_VERSION))">>) of
  6163. {ok, {204, _, _}} ->
  6164. io:format("Release $(strip $(PROJECT_VERSION)) deleted~n"),
  6165. halt(0);
  6166. {ok, {Status, _, Errors}} ->
  6167. io:format("Error ~b: ~0p~n", [Status, Errors]),
  6168. halt(85)
  6169. end
  6170. endef
  6171. hex-release-delete: hex-core
  6172. $(if $(HEX_SECRET),,$(eval HEX_SECRET := $(shell stty -echo; read -p "Secret: " secret; stty echo; echo $$secret) $(info )))
  6173. $(gen_verbose) $(call erlang,$(call hex_release_delete.erl,$(HEX_SECRET)))
  6174. define hex_release_retire.erl
  6175. {ok, _} = application:ensure_all_started(ssl),
  6176. {ok, _} = application:ensure_all_started(inets),
  6177. Config = $(hex_config.erl),
  6178. ConfigF = Config#{api_key => <<"$(strip $1)">>},
  6179. Params = #{<<"reason">> => <<"$(strip $3)">>, <<"message">> => <<"$(strip $4)">>},
  6180. case hex_api_release:retire(ConfigF, <<"$(strip $(PROJECT))">>, <<"$(strip $2)">>, Params) of
  6181. {ok, {204, _, _}} ->
  6182. io:format("Release $(strip $2) has been retired~n"),
  6183. halt(0);
  6184. {ok, {Status, _, Errors}} ->
  6185. io:format("Error ~b: ~0p~n", [Status, Errors]),
  6186. halt(86)
  6187. end
  6188. endef
  6189. hex-release-retire: hex-core
  6190. $(if $(HEX_SECRET),,$(eval HEX_SECRET := $(shell stty -echo; read -p "Secret: " secret; stty echo; echo $$secret) $(info )))
  6191. $(gen_verbose) $(call erlang,$(call hex_release_retire.erl,$(HEX_SECRET),\
  6192. $(if $(HEX_VERSION),$(HEX_VERSION),$(PROJECT_VERSION)),\
  6193. $(if $(HEX_REASON),$(HEX_REASON),invalid),\
  6194. $(HEX_MESSAGE)))
  6195. define hex_release_unretire.erl
  6196. {ok, _} = application:ensure_all_started(ssl),
  6197. {ok, _} = application:ensure_all_started(inets),
  6198. Config = $(hex_config.erl),
  6199. ConfigF = Config#{api_key => <<"$(strip $1)">>},
  6200. case hex_api_release:unretire(ConfigF, <<"$(strip $(PROJECT))">>, <<"$(strip $2)">>) of
  6201. {ok, {204, _, _}} ->
  6202. io:format("Release $(strip $2) is not retired anymore~n"),
  6203. halt(0);
  6204. {ok, {Status, _, Errors}} ->
  6205. io:format("Error ~b: ~0p~n", [Status, Errors]),
  6206. halt(87)
  6207. end
  6208. endef
  6209. hex-release-unretire: hex-core
  6210. $(if $(HEX_SECRET),,$(eval HEX_SECRET := $(shell stty -echo; read -p "Secret: " secret; stty echo; echo $$secret) $(info )))
  6211. $(gen_verbose) $(call erlang,$(call hex_release_unretire.erl,$(HEX_SECRET),\
  6212. $(if $(HEX_VERSION),$(HEX_VERSION),$(PROJECT_VERSION))))
  6213. HEX_DOCS_DOC_DIR ?= doc/
  6214. HEX_DOCS_TARBALL_FILES ?= $(sort $(call core_find,$(HEX_DOCS_DOC_DIR),*))
  6215. HEX_DOCS_TARBALL_OUTPUT_FILE ?= $(ERLANG_MK_TMP)/$(PROJECT)-docs.tar.gz
  6216. $(HEX_DOCS_TARBALL_OUTPUT_FILE): hex-core app docs
  6217. $(hex_tar_verbose) tar czf $(HEX_DOCS_TARBALL_OUTPUT_FILE) -C $(HEX_DOCS_DOC_DIR) \
  6218. $(HEX_DOCS_TARBALL_FILES:$(HEX_DOCS_DOC_DIR)%=%)
  6219. hex-docs-tarball-create: $(HEX_DOCS_TARBALL_OUTPUT_FILE)
  6220. define hex_docs_publish.erl
  6221. {ok, _} = application:ensure_all_started(ssl),
  6222. {ok, _} = application:ensure_all_started(inets),
  6223. Config = $(hex_config.erl),
  6224. ConfigF = Config#{api_key => <<"$(strip $1)">>},
  6225. {ok, Tarball} = file:read_file("$(strip $(HEX_DOCS_TARBALL_OUTPUT_FILE))"),
  6226. case hex_api:post(ConfigF,
  6227. ["packages", "$(strip $(PROJECT))", "releases", "$(strip $(PROJECT_VERSION))", "docs"],
  6228. {"application/octet-stream", Tarball}) of
  6229. {ok, {Status, _, _}} when Status >= 200, Status < 300 ->
  6230. io:format("Docs published~n"),
  6231. halt(0);
  6232. {ok, {Status, _, Errors}} ->
  6233. io:format("Error ~b: ~0p~n", [Status, Errors]),
  6234. halt(88)
  6235. end
  6236. endef
  6237. hex-docs-publish: hex-core hex-docs-tarball-create
  6238. $(if $(HEX_SECRET),,$(eval HEX_SECRET := $(shell stty -echo; read -p "Secret: " secret; stty echo; echo $$secret) $(info )))
  6239. $(gen_verbose) $(call erlang,$(call hex_docs_publish.erl,$(HEX_SECRET)))
  6240. define hex_docs_delete.erl
  6241. {ok, _} = application:ensure_all_started(ssl),
  6242. {ok, _} = application:ensure_all_started(inets),
  6243. Config = $(hex_config.erl),
  6244. ConfigF = Config#{api_key => <<"$(strip $1)">>},
  6245. case hex_api:delete(ConfigF,
  6246. ["packages", "$(strip $(PROJECT))", "releases", "$(strip $2)", "docs"]) of
  6247. {ok, {Status, _, _}} when Status >= 200, Status < 300 ->
  6248. io:format("Docs removed~n"),
  6249. halt(0);
  6250. {ok, {Status, _, Errors}} ->
  6251. io:format("Error ~b: ~0p~n", [Status, Errors]),
  6252. halt(89)
  6253. end
  6254. endef
  6255. hex-docs-delete: hex-core
  6256. $(if $(HEX_SECRET),,$(eval HEX_SECRET := $(shell stty -echo; read -p "Secret: " secret; stty echo; echo $$secret) $(info )))
  6257. $(gen_verbose) $(call erlang,$(call hex_docs_delete.erl,$(HEX_SECRET),\
  6258. $(if $(HEX_VERSION),$(HEX_VERSION),$(PROJECT_VERSION))))
  6259. # Copyright (c) 2015-2017, Loïc Hoguin <essen@ninenines.eu>
  6260. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6261. ifeq ($(filter proper,$(DEPS) $(TEST_DEPS)),proper)
  6262. .PHONY: proper
  6263. # Targets.
  6264. tests:: proper
  6265. define proper_check.erl
  6266. $(call cover.erl)
  6267. code:add_pathsa([
  6268. "$(call core_native_path,$(CURDIR)/ebin)",
  6269. "$(call core_native_path,$(DEPS_DIR)/*/ebin)",
  6270. "$(call core_native_path,$(TEST_DIR))"]),
  6271. Module = fun(M) ->
  6272. [true] =:= lists:usort([
  6273. case atom_to_list(F) of
  6274. "prop_" ++ _ ->
  6275. io:format("Testing ~p:~p/0~n", [M, F]),
  6276. proper:quickcheck(M:F(), nocolors);
  6277. _ ->
  6278. true
  6279. end
  6280. || {F, 0} <- M:module_info(exports)])
  6281. end,
  6282. try begin
  6283. CoverSetup(),
  6284. Res = case $(1) of
  6285. all -> [true] =:= lists:usort([Module(M) || M <- [$(call comma_list,$(3))]]);
  6286. module -> Module($(2));
  6287. function -> proper:quickcheck($(2), nocolors)
  6288. end,
  6289. CoverExport("$(COVER_DATA_DIR)/proper.coverdata"),
  6290. Res
  6291. end of
  6292. true -> halt(0);
  6293. _ -> halt(1)
  6294. catch error:undef ->
  6295. io:format("Undefined property or module?~n~p~n", [erlang:get_stacktrace()]),
  6296. halt(0)
  6297. end.
  6298. endef
  6299. ifdef t
  6300. ifeq (,$(findstring :,$(t)))
  6301. proper: test-build cover-data-dir
  6302. $(verbose) $(call erlang,$(call proper_check.erl,module,$(t)))
  6303. else
  6304. proper: test-build cover-data-dir
  6305. $(verbose) echo Testing $(t)/0
  6306. $(verbose) $(call erlang,$(call proper_check.erl,function,$(t)()))
  6307. endif
  6308. else
  6309. proper: test-build cover-data-dir
  6310. $(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \
  6311. $(wildcard ebin/*.beam) $(call core_find,$(TEST_DIR)/,*.beam))))))
  6312. $(gen_verbose) $(call erlang,$(call proper_check.erl,all,undefined,$(MODULES)))
  6313. endif
  6314. endif
  6315. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  6316. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6317. # Verbosity.
  6318. proto_verbose_0 = @echo " PROTO " $(filter %.proto,$(?F));
  6319. proto_verbose = $(proto_verbose_$(V))
  6320. # Core targets.
  6321. ifneq ($(wildcard src/),)
  6322. ifneq ($(filter gpb protobuffs,$(BUILD_DEPS) $(DEPS)),)
  6323. PROTO_FILES := $(filter %.proto,$(ALL_SRC_FILES))
  6324. ERL_FILES += $(addprefix src/,$(patsubst %.proto,%_pb.erl,$(notdir $(PROTO_FILES))))
  6325. ifeq ($(PROTO_FILES),)
  6326. $(ERLANG_MK_TMP)/last-makefile-change-protobuffs:
  6327. $(verbose) :
  6328. else
  6329. # Rebuild proto files when the Makefile changes.
  6330. # We exclude $(PROJECT).d to avoid a circular dependency.
  6331. $(ERLANG_MK_TMP)/last-makefile-change-protobuffs: $(filter-out $(PROJECT).d,$(MAKEFILE_LIST)) | $(ERLANG_MK_TMP)
  6332. $(verbose) if test -f $@; then \
  6333. touch $(PROTO_FILES); \
  6334. fi
  6335. $(verbose) touch $@
  6336. $(PROJECT).d:: $(ERLANG_MK_TMP)/last-makefile-change-protobuffs
  6337. endif
  6338. ifeq ($(filter gpb,$(BUILD_DEPS) $(DEPS)),)
  6339. define compile_proto.erl
  6340. [begin
  6341. protobuffs_compile:generate_source(F, [
  6342. {output_include_dir, "./include"},
  6343. {output_src_dir, "./src"}])
  6344. end || F <- string:tokens("$1", " ")],
  6345. halt().
  6346. endef
  6347. else
  6348. define compile_proto.erl
  6349. [begin
  6350. gpb_compile:file(F, [
  6351. {include_as_lib, true},
  6352. {module_name_suffix, "_pb"},
  6353. {o_hrl, "./include"},
  6354. {o_erl, "./src"}])
  6355. end || F <- string:tokens("$1", " ")],
  6356. halt().
  6357. endef
  6358. endif
  6359. ifneq ($(PROTO_FILES),)
  6360. $(PROJECT).d:: $(PROTO_FILES)
  6361. $(verbose) mkdir -p ebin/ include/
  6362. $(if $(strip $?),$(proto_verbose) $(call erlang,$(call compile_proto.erl,$?)))
  6363. endif
  6364. endif
  6365. endif
  6366. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  6367. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6368. ifeq ($(filter relx,$(BUILD_DEPS) $(DEPS) $(REL_DEPS)),relx)
  6369. .PHONY: relx-rel relx-relup distclean-relx-rel run
  6370. # Configuration.
  6371. RELX_CONFIG ?= $(CURDIR)/relx.config
  6372. RELX_OUTPUT_DIR ?= _rel
  6373. RELX_REL_EXT ?=
  6374. RELX_TAR ?= 1
  6375. ifdef SFX
  6376. RELX_TAR = 1
  6377. endif
  6378. # Core targets.
  6379. ifeq ($(IS_DEP),)
  6380. ifneq ($(wildcard $(RELX_CONFIG)),)
  6381. rel:: relx-rel
  6382. relup:: relx-relup
  6383. endif
  6384. endif
  6385. distclean:: distclean-relx-rel
  6386. # Plugin-specific targets.
  6387. define relx_release.erl
  6388. {ok, Config} = file:consult("$(call core_native_path,$(RELX_CONFIG))"),
  6389. {release, {Name, Vsn0}, _} = lists:keyfind(release, 1, Config),
  6390. Vsn = case Vsn0 of
  6391. {cmd, Cmd} -> os:cmd(Cmd);
  6392. semver -> "";
  6393. {semver, _} -> "";
  6394. VsnStr -> Vsn0
  6395. end,
  6396. {ok, _} = relx:build_release(#{name => Name, vsn => Vsn}, Config),
  6397. halt(0).
  6398. endef
  6399. define relx_tar.erl
  6400. {ok, Config} = file:consult("$(call core_native_path,$(RELX_CONFIG))"),
  6401. {release, {Name, Vsn0}, _} = lists:keyfind(release, 1, Config),
  6402. Vsn = case Vsn0 of
  6403. {cmd, Cmd} -> os:cmd(Cmd);
  6404. semver -> "";
  6405. {semver, _} -> "";
  6406. VsnStr -> Vsn0
  6407. end,
  6408. {ok, _} = relx:build_tar(#{name => Name, vsn => Vsn}, Config),
  6409. halt(0).
  6410. endef
  6411. define relx_relup.erl
  6412. {ok, Config} = file:consult("$(call core_native_path,$(RELX_CONFIG))"),
  6413. {release, {Name, Vsn0}, _} = lists:keyfind(release, 1, Config),
  6414. Vsn = case Vsn0 of
  6415. {cmd, Cmd} -> os:cmd(Cmd);
  6416. semver -> "";
  6417. {semver, _} -> "";
  6418. VsnStr -> Vsn0
  6419. end,
  6420. {ok, _} = relx:build_relup(Name, Vsn, undefined, Config ++ [{output_dir, "$(RELX_OUTPUT_DIR)"}]),
  6421. halt(0).
  6422. endef
  6423. relx-rel: rel-deps app
  6424. $(call erlang,$(call relx_release.erl),-pa ebin/)
  6425. $(verbose) $(MAKE) relx-post-rel
  6426. ifeq ($(RELX_TAR),1)
  6427. $(call erlang,$(call relx_tar.erl),-pa ebin/)
  6428. endif
  6429. relx-relup: rel-deps app
  6430. $(call erlang,$(call relx_release.erl),-pa ebin/)
  6431. $(MAKE) relx-post-rel
  6432. $(call erlang,$(call relx_relup.erl),-pa ebin/)
  6433. ifeq ($(RELX_TAR),1)
  6434. $(call erlang,$(call relx_tar.erl),-pa ebin/)
  6435. endif
  6436. distclean-relx-rel:
  6437. $(gen_verbose) rm -rf $(RELX_OUTPUT_DIR)
  6438. # Default hooks.
  6439. relx-post-rel::
  6440. $(verbose) :
  6441. # Run target.
  6442. ifeq ($(wildcard $(RELX_CONFIG)),)
  6443. run::
  6444. else
  6445. define get_relx_release.erl
  6446. {ok, Config} = file:consult("$(call core_native_path,$(RELX_CONFIG))"),
  6447. {release, {Name, Vsn0}, _} = lists:keyfind(release, 1, Config),
  6448. Vsn = case Vsn0 of
  6449. {cmd, Cmd} -> os:cmd(Cmd);
  6450. semver -> "";
  6451. {semver, _} -> "";
  6452. VsnStr -> Vsn0
  6453. end,
  6454. Extended = case lists:keyfind(extended_start_script, 1, Config) of
  6455. {_, true} -> "1";
  6456. _ -> ""
  6457. end,
  6458. io:format("~s ~s ~s", [Name, Vsn, Extended]),
  6459. halt(0).
  6460. endef
  6461. RELX_REL := $(shell $(call erlang,$(get_relx_release.erl)))
  6462. RELX_REL_NAME := $(word 1,$(RELX_REL))
  6463. RELX_REL_VSN := $(word 2,$(RELX_REL))
  6464. RELX_REL_CMD := $(if $(word 3,$(RELX_REL)),console)
  6465. ifeq ($(PLATFORM),msys2)
  6466. RELX_REL_EXT := .cmd
  6467. endif
  6468. run:: all
  6469. $(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) $(RELX_REL_CMD)
  6470. ifdef RELOAD
  6471. rel::
  6472. $(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) ping
  6473. $(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) \
  6474. eval "io:format(\"~p~n\", [c:lm()])"
  6475. endif
  6476. help::
  6477. $(verbose) printf "%s\n" "" \
  6478. "Relx targets:" \
  6479. " run Compile the project, build the release and run it"
  6480. endif
  6481. endif
  6482. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  6483. # Copyright (c) 2014, M Robert Martin <rob@version2beta.com>
  6484. # This file is contributed to erlang.mk and subject to the terms of the ISC License.
  6485. .PHONY: shell
  6486. # Configuration.
  6487. SHELL_ERL ?= erl
  6488. SHELL_PATHS ?= $(CURDIR)/ebin $(TEST_DIR)
  6489. SHELL_OPTS ?=
  6490. ALL_SHELL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(SHELL_DEPS))
  6491. # Core targets
  6492. help::
  6493. $(verbose) printf "%s\n" "" \
  6494. "Shell targets:" \
  6495. " shell Run an erlang shell with SHELL_OPTS or reasonable default"
  6496. # Plugin-specific targets.
  6497. $(foreach dep,$(SHELL_DEPS),$(eval $(call dep_target,$(dep))))
  6498. ifneq ($(SKIP_DEPS),)
  6499. build-shell-deps:
  6500. else
  6501. build-shell-deps: $(ALL_SHELL_DEPS_DIRS)
  6502. $(verbose) set -e; for dep in $(ALL_SHELL_DEPS_DIRS) ; do \
  6503. if [ -z "$(strip $(FULL))" ] && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \
  6504. :; \
  6505. else \
  6506. $(MAKE) -C $$dep IS_DEP=1; \
  6507. if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \
  6508. fi \
  6509. done
  6510. endif
  6511. shell:: build-shell-deps
  6512. $(gen_verbose) $(SHELL_ERL) -pa $(SHELL_PATHS) $(SHELL_OPTS)
  6513. # Copyright 2017, Stanislaw Klekot <dozzie@jarowit.net>
  6514. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6515. .PHONY: distclean-sphinx sphinx
  6516. # Configuration.
  6517. SPHINX_BUILD ?= sphinx-build
  6518. SPHINX_SOURCE ?= doc
  6519. SPHINX_CONFDIR ?=
  6520. SPHINX_FORMATS ?= html
  6521. SPHINX_DOCTREES ?= $(ERLANG_MK_TMP)/sphinx.doctrees
  6522. SPHINX_OPTS ?=
  6523. #sphinx_html_opts =
  6524. #sphinx_html_output = html
  6525. #sphinx_man_opts =
  6526. #sphinx_man_output = man
  6527. #sphinx_latex_opts =
  6528. #sphinx_latex_output = latex
  6529. # Helpers.
  6530. sphinx_build_0 = @echo " SPHINX" $1; $(SPHINX_BUILD) -N -q
  6531. sphinx_build_1 = $(SPHINX_BUILD) -N
  6532. sphinx_build_2 = set -x; $(SPHINX_BUILD)
  6533. sphinx_build = $(sphinx_build_$(V))
  6534. define sphinx.build
  6535. $(call sphinx_build,$1) -b $1 -d $(SPHINX_DOCTREES) $(if $(SPHINX_CONFDIR),-c $(SPHINX_CONFDIR)) $(SPHINX_OPTS) $(sphinx_$1_opts) -- $(SPHINX_SOURCE) $(call sphinx.output,$1)
  6536. endef
  6537. define sphinx.output
  6538. $(if $(sphinx_$1_output),$(sphinx_$1_output),$1)
  6539. endef
  6540. # Targets.
  6541. ifneq ($(wildcard $(if $(SPHINX_CONFDIR),$(SPHINX_CONFDIR),$(SPHINX_SOURCE))/conf.py),)
  6542. docs:: sphinx
  6543. distclean:: distclean-sphinx
  6544. endif
  6545. help::
  6546. $(verbose) printf "%s\n" "" \
  6547. "Sphinx targets:" \
  6548. " sphinx Generate Sphinx documentation." \
  6549. "" \
  6550. "ReST sources and 'conf.py' file are expected in directory pointed by" \
  6551. "SPHINX_SOURCE ('doc' by default). SPHINX_FORMATS lists formats to build (only" \
  6552. "'html' format is generated by default); target directory can be specified by" \
  6553. 'setting sphinx_$${format}_output, for example: sphinx_html_output = output/html' \
  6554. "Additional Sphinx options can be set in SPHINX_OPTS."
  6555. # Plugin-specific targets.
  6556. sphinx:
  6557. $(foreach F,$(SPHINX_FORMATS),$(call sphinx.build,$F))
  6558. distclean-sphinx:
  6559. $(gen_verbose) rm -rf $(filter-out $(SPHINX_SOURCE),$(foreach F,$(SPHINX_FORMATS),$(call sphinx.output,$F)))
  6560. # Copyright (c) 2017, Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com>
  6561. # This file is contributed to erlang.mk and subject to the terms of the ISC License.
  6562. .PHONY: show-ERL_LIBS show-ERLC_OPTS show-TEST_ERLC_OPTS
  6563. show-ERL_LIBS:
  6564. @echo $(ERL_LIBS)
  6565. show-ERLC_OPTS:
  6566. @$(foreach opt,$(ERLC_OPTS) -pa ebin -I include,echo "$(opt)";)
  6567. show-TEST_ERLC_OPTS:
  6568. @$(foreach opt,$(TEST_ERLC_OPTS) -pa ebin -I include,echo "$(opt)";)
  6569. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  6570. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6571. ifeq ($(filter triq,$(DEPS) $(TEST_DEPS)),triq)
  6572. .PHONY: triq
  6573. # Targets.
  6574. tests:: triq
  6575. define triq_check.erl
  6576. $(call cover.erl)
  6577. code:add_pathsa([
  6578. "$(call core_native_path,$(CURDIR)/ebin)",
  6579. "$(call core_native_path,$(DEPS_DIR)/*/ebin)",
  6580. "$(call core_native_path,$(TEST_DIR))"]),
  6581. try begin
  6582. CoverSetup(),
  6583. Res = case $(1) of
  6584. all -> [true] =:= lists:usort([triq:check(M) || M <- [$(call comma_list,$(3))]]);
  6585. module -> triq:check($(2));
  6586. function -> triq:check($(2))
  6587. end,
  6588. CoverExport("$(COVER_DATA_DIR)/triq.coverdata"),
  6589. Res
  6590. end of
  6591. true -> halt(0);
  6592. _ -> halt(1)
  6593. catch error:undef ->
  6594. io:format("Undefined property or module?~n~p~n", [erlang:get_stacktrace()]),
  6595. halt(0)
  6596. end.
  6597. endef
  6598. ifdef t
  6599. ifeq (,$(findstring :,$(t)))
  6600. triq: test-build cover-data-dir
  6601. $(verbose) $(call erlang,$(call triq_check.erl,module,$(t)))
  6602. else
  6603. triq: test-build cover-data-dir
  6604. $(verbose) echo Testing $(t)/0
  6605. $(verbose) $(call erlang,$(call triq_check.erl,function,$(t)()))
  6606. endif
  6607. else
  6608. triq: test-build cover-data-dir
  6609. $(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \
  6610. $(wildcard ebin/*.beam) $(call core_find,$(TEST_DIR)/,*.beam))))))
  6611. $(gen_verbose) $(call erlang,$(call triq_check.erl,all,undefined,$(MODULES)))
  6612. endif
  6613. endif
  6614. # Copyright (c) 2022, Loïc Hoguin <essen@ninenines.eu>
  6615. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6616. .PHONY: xref
  6617. # Configuration.
  6618. # We do not use locals_not_used or deprecated_function_calls
  6619. # because the compiler will error out by default in those
  6620. # cases with Erlang.mk. Deprecated functions may make sense
  6621. # in some cases but few libraries define them. We do not
  6622. # use exports_not_used by default because it hinders more
  6623. # than it helps library projects such as Cowboy. Finally,
  6624. # undefined_functions provides little that undefined_function_calls
  6625. # doesn't already provide, so it's not enabled by default.
  6626. XREF_CHECKS ?= [undefined_function_calls]
  6627. # Instead of predefined checks a query can be evaluated
  6628. # using the Xref DSL. The $q variable is used in that case.
  6629. # The scope is a list of keywords that correspond to
  6630. # application directories, being essentially an easy way
  6631. # to configure which applications to analyze. With:
  6632. #
  6633. # - app: .
  6634. # - apps: $(ALL_APPS_DIRS)
  6635. # - deps: $(ALL_DEPS_DIRS)
  6636. # - otp: Built-in Erlang/OTP applications.
  6637. #
  6638. # The default is conservative (app) and will not be
  6639. # appropriate for all types of queries (for example
  6640. # application_call requires adding all applications
  6641. # that might be called or they will not be found).
  6642. XREF_SCOPE ?= app # apps deps otp
  6643. # If the above is not enough, additional application
  6644. # directories can be configured.
  6645. XREF_EXTRA_APP_DIRS ?=
  6646. # As well as additional non-application directories.
  6647. XREF_EXTRA_DIRS ?=
  6648. # Erlang.mk supports -ignore_xref([...]) with forms
  6649. # {M, F, A} | {F, A} | M, the latter ignoring whole
  6650. # modules. Ignores can also be provided project-wide.
  6651. XREF_IGNORE ?= []
  6652. # All callbacks may be ignored. Erlang.mk will ignore
  6653. # them automatically for exports_not_used (unless it
  6654. # is explicitly disabled by the user).
  6655. XREF_IGNORE_CALLBACKS ?=
  6656. # Core targets.
  6657. help::
  6658. $(verbose) printf '%s\n' '' \
  6659. 'Xref targets:' \
  6660. ' xref Analyze the project using Xref' \
  6661. ' xref q=QUERY Evaluate an Xref query'
  6662. # Plugin-specific targets.
  6663. define xref.erl
  6664. {ok, Xref} = xref:start([]),
  6665. Scope = [$(call comma_list,$(XREF_SCOPE))],
  6666. AppDirs0 = [$(call comma_list,$(foreach d,$(XREF_EXTRA_APP_DIRS),"$d"))],
  6667. AppDirs1 = case lists:member(otp, Scope) of
  6668. false -> AppDirs0;
  6669. true ->
  6670. RootDir = code:root_dir(),
  6671. AppDirs0 ++ [filename:dirname(P) || P <- code:get_path(), lists:prefix(RootDir, P)]
  6672. end,
  6673. AppDirs2 = case lists:member(deps, Scope) of
  6674. false -> AppDirs1;
  6675. true -> [$(call comma_list,$(foreach d,$(ALL_DEPS_DIRS),"$d"))] ++ AppDirs1
  6676. end,
  6677. AppDirs3 = case lists:member(apps, Scope) of
  6678. false -> AppDirs2;
  6679. true -> [$(call comma_list,$(foreach d,$(ALL_APPS_DIRS),"$d"))] ++ AppDirs2
  6680. end,
  6681. AppDirs = case lists:member(app, Scope) of
  6682. false -> AppDirs3;
  6683. true -> ["../$(notdir $(CURDIR))"|AppDirs3]
  6684. end,
  6685. [{ok, _} = xref:add_application(Xref, AppDir, [{builtins, true}]) || AppDir <- AppDirs],
  6686. ExtraDirs = [$(call comma_list,$(foreach d,$(XREF_EXTRA_DIRS),"$d"))],
  6687. [{ok, _} = xref:add_directory(Xref, ExtraDir, [{builtins, true}]) || ExtraDir <- ExtraDirs],
  6688. ok = xref:set_library_path(Xref, code:get_path() -- (["ebin", "."] ++ AppDirs ++ ExtraDirs)),
  6689. Checks = case {$1, is_list($2)} of
  6690. {check, true} -> $2;
  6691. {check, false} -> [$2];
  6692. {query, _} -> [$2]
  6693. end,
  6694. FinalRes = [begin
  6695. IsInformational = case $1 of
  6696. query -> true;
  6697. check ->
  6698. is_tuple(Check) andalso
  6699. lists:member(element(1, Check),
  6700. [call, use, module_call, module_use, application_call, application_use])
  6701. end,
  6702. {ok, Res0} = case $1 of
  6703. check -> xref:analyze(Xref, Check);
  6704. query -> xref:q(Xref, Check)
  6705. end,
  6706. Res = case IsInformational of
  6707. true -> Res0;
  6708. false ->
  6709. lists:filter(fun(R) ->
  6710. {Mod, InMFA, MFA} = case R of
  6711. {InMFA0 = {M, _, _}, MFA0} -> {M, InMFA0, MFA0};
  6712. {M, _, _} -> {M, R, R}
  6713. end,
  6714. Attrs = try
  6715. Mod:module_info(attributes)
  6716. catch error:undef ->
  6717. []
  6718. end,
  6719. InlineIgnores = lists:flatten([
  6720. [case V of
  6721. M when is_atom(M) -> {M, '_', '_'};
  6722. {F, A} -> {Mod, F, A};
  6723. _ -> V
  6724. end || V <- Values]
  6725. || {ignore_xref, Values} <- Attrs]),
  6726. BuiltinIgnores = [
  6727. {eunit_test, wrapper_test_exported_, 0}
  6728. ],
  6729. DoCallbackIgnores = case {Check, "$(strip $(XREF_IGNORE_CALLBACKS))"} of
  6730. {exports_not_used, ""} -> true;
  6731. {_, "0"} -> false;
  6732. _ -> true
  6733. end,
  6734. CallbackIgnores = case DoCallbackIgnores of
  6735. false -> [];
  6736. true ->
  6737. Behaviors = lists:flatten([
  6738. [BL || {behavior, BL} <- Attrs],
  6739. [BL || {behaviour, BL} <- Attrs]
  6740. ]),
  6741. [{Mod, CF, CA} || B <- Behaviors, {CF, CA} <- B:behaviour_info(callbacks)]
  6742. end,
  6743. WideIgnores = if
  6744. is_list($(XREF_IGNORE)) ->
  6745. [if is_atom(I) -> {I, '_', '_'}; true -> I end
  6746. || I <- $(XREF_IGNORE)];
  6747. true -> [$(XREF_IGNORE)]
  6748. end,
  6749. Ignores = InlineIgnores ++ BuiltinIgnores ++ CallbackIgnores ++ WideIgnores,
  6750. not (lists:member(InMFA, Ignores)
  6751. orelse lists:member(MFA, Ignores)
  6752. orelse lists:member({Mod, '_', '_'}, Ignores))
  6753. end, Res0)
  6754. end,
  6755. case Res of
  6756. [] -> ok;
  6757. _ when IsInformational ->
  6758. case Check of
  6759. {call, {CM, CF, CA}} ->
  6760. io:format("Functions that ~s:~s/~b calls:~n", [CM, CF, CA]);
  6761. {use, {CM, CF, CA}} ->
  6762. io:format("Function ~s:~s/~b is called by:~n", [CM, CF, CA]);
  6763. {module_call, CMod} ->
  6764. io:format("Modules that ~s calls:~n", [CMod]);
  6765. {module_use, CMod} ->
  6766. io:format("Module ~s is used by:~n", [CMod]);
  6767. {application_call, CApp} ->
  6768. io:format("Applications that ~s calls:~n", [CApp]);
  6769. {application_use, CApp} ->
  6770. io:format("Application ~s is used by:~n", [CApp]);
  6771. _ when $1 =:= query ->
  6772. io:format("Query ~s returned:~n", [Check])
  6773. end,
  6774. [case R of
  6775. {{InM, InF, InA}, {M, F, A}} ->
  6776. io:format("- ~s:~s/~b called by ~s:~s/~b~n",
  6777. [M, F, A, InM, InF, InA]);
  6778. {M, F, A} ->
  6779. io:format("- ~s:~s/~b~n", [M, F, A]);
  6780. ModOrApp ->
  6781. io:format("- ~s~n", [ModOrApp])
  6782. end || R <- Res],
  6783. ok;
  6784. _ ->
  6785. [case {Check, R} of
  6786. {undefined_function_calls, {{InM, InF, InA}, {M, F, A}}} ->
  6787. io:format("Undefined function ~s:~s/~b called by ~s:~s/~b~n",
  6788. [M, F, A, InM, InF, InA]);
  6789. {undefined_functions, {M, F, A}} ->
  6790. io:format("Undefined function ~s:~s/~b~n", [M, F, A]);
  6791. {locals_not_used, {M, F, A}} ->
  6792. io:format("Unused local function ~s:~s/~b~n", [M, F, A]);
  6793. {exports_not_used, {M, F, A}} ->
  6794. io:format("Unused exported function ~s:~s/~b~n", [M, F, A]);
  6795. {deprecated_function_calls, {{InM, InF, InA}, {M, F, A}}} ->
  6796. io:format("Deprecated function ~s:~s/~b called by ~s:~s/~b~n",
  6797. [M, F, A, InM, InF, InA]);
  6798. {deprecated_functions, {M, F, A}} ->
  6799. io:format("Deprecated function ~s:~s/~b~n", [M, F, A]);
  6800. _ ->
  6801. io:format("~p: ~p~n", [Check, R])
  6802. end || R <- Res],
  6803. error
  6804. end
  6805. end || Check <- Checks],
  6806. stopped = xref:stop(Xref),
  6807. case lists:usort(FinalRes) of
  6808. [ok] -> halt(0);
  6809. _ -> halt(1)
  6810. end
  6811. endef
  6812. xref: deps app
  6813. ifdef q
  6814. $(verbose) $(call erlang,$(call xref.erl,query,"$q"),-pa ebin/)
  6815. else
  6816. $(verbose) $(call erlang,$(call xref.erl,check,$(XREF_CHECKS)),-pa ebin/)
  6817. endif
  6818. # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
  6819. # Copyright (c) 2015, Viktor Söderqvist <viktor@zuiderkwast.se>
  6820. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6821. COVER_REPORT_DIR ?= cover
  6822. COVER_DATA_DIR ?= $(COVER_REPORT_DIR)
  6823. ifdef COVER
  6824. COVER_APPS ?= $(notdir $(ALL_APPS_DIRS))
  6825. COVER_DEPS ?=
  6826. endif
  6827. # Code coverage for Common Test.
  6828. ifdef COVER
  6829. ifdef CT_RUN
  6830. ifneq ($(wildcard $(TEST_DIR)),)
  6831. test-build:: $(TEST_DIR)/ct.cover.spec
  6832. $(TEST_DIR)/ct.cover.spec: cover-data-dir
  6833. $(gen_verbose) printf "%s\n" \
  6834. "{incl_app, '$(PROJECT)', details}." \
  6835. "{incl_dirs, '$(PROJECT)', [\"$(call core_native_path,$(CURDIR)/ebin)\" \
  6836. $(foreach a,$(COVER_APPS),$(comma) \"$(call core_native_path,$(APPS_DIR)/$a/ebin)\") \
  6837. $(foreach d,$(COVER_DEPS),$(comma) \"$(call core_native_path,$(DEPS_DIR)/$d/ebin)\")]}." \
  6838. '{export,"$(call core_native_path,$(abspath $(COVER_DATA_DIR))/ct.coverdata)"}.' > $@
  6839. CT_RUN += -cover $(TEST_DIR)/ct.cover.spec
  6840. endif
  6841. endif
  6842. endif
  6843. # Code coverage for other tools.
  6844. ifdef COVER
  6845. define cover.erl
  6846. CoverSetup = fun() ->
  6847. Dirs = ["$(call core_native_path,$(CURDIR)/ebin)"
  6848. $(foreach a,$(COVER_APPS),$(comma) "$(call core_native_path,$(APPS_DIR)/$a/ebin)")
  6849. $(foreach d,$(COVER_DEPS),$(comma) "$(call core_native_path,$(DEPS_DIR)/$d/ebin)")],
  6850. [begin
  6851. case filelib:is_dir(Dir) of
  6852. false -> false;
  6853. true ->
  6854. case cover:compile_beam_directory(Dir) of
  6855. {error, _} -> halt(1);
  6856. _ -> true
  6857. end
  6858. end
  6859. end || Dir <- Dirs]
  6860. end,
  6861. CoverExport = fun(Filename) -> cover:export(Filename) end,
  6862. endef
  6863. else
  6864. define cover.erl
  6865. CoverSetup = fun() -> ok end,
  6866. CoverExport = fun(_) -> ok end,
  6867. endef
  6868. endif
  6869. # Core targets
  6870. ifdef COVER
  6871. ifneq ($(COVER_REPORT_DIR),)
  6872. tests::
  6873. $(verbose) $(MAKE) --no-print-directory cover-report
  6874. endif
  6875. cover-data-dir: | $(COVER_DATA_DIR)
  6876. $(COVER_DATA_DIR):
  6877. $(verbose) mkdir -p $(COVER_DATA_DIR)
  6878. else
  6879. cover-data-dir:
  6880. endif
  6881. clean:: coverdata-clean
  6882. ifneq ($(COVER_REPORT_DIR),)
  6883. distclean:: cover-report-clean
  6884. endif
  6885. help::
  6886. $(verbose) printf "%s\n" "" \
  6887. "Cover targets:" \
  6888. " cover-report Generate a HTML coverage report from previously collected" \
  6889. " cover data." \
  6890. " all.coverdata Merge all coverdata files into all.coverdata." \
  6891. "" \
  6892. "If COVER=1 is set, coverage data is generated by the targets eunit and ct. The" \
  6893. "target tests additionally generates a HTML coverage report from the combined" \
  6894. "coverdata files from each of these testing tools. HTML reports can be disabled" \
  6895. "by setting COVER_REPORT_DIR to empty."
  6896. # Plugin specific targets
  6897. COVERDATA = $(filter-out $(COVER_DATA_DIR)/all.coverdata,$(wildcard $(COVER_DATA_DIR)/*.coverdata))
  6898. .PHONY: coverdata-clean
  6899. coverdata-clean:
  6900. $(gen_verbose) rm -f $(COVER_DATA_DIR)/*.coverdata $(TEST_DIR)/ct.cover.spec
  6901. # Merge all coverdata files into one.
  6902. define cover_export.erl
  6903. $(foreach f,$(COVERDATA),cover:import("$(f)") == ok orelse halt(1),)
  6904. cover:export("$(COVER_DATA_DIR)/$@"), halt(0).
  6905. endef
  6906. all.coverdata: $(COVERDATA) cover-data-dir
  6907. $(gen_verbose) $(call erlang,$(cover_export.erl))
  6908. # These are only defined if COVER_REPORT_DIR is non-empty. Set COVER_REPORT_DIR to
  6909. # empty if you want the coverdata files but not the HTML report.
  6910. ifneq ($(COVER_REPORT_DIR),)
  6911. .PHONY: cover-report-clean cover-report
  6912. cover-report-clean:
  6913. $(gen_verbose) rm -rf $(COVER_REPORT_DIR)
  6914. ifneq ($(COVER_REPORT_DIR),$(COVER_DATA_DIR))
  6915. $(if $(shell ls -A $(COVER_DATA_DIR)/),,$(verbose) rmdir $(COVER_DATA_DIR))
  6916. endif
  6917. ifeq ($(COVERDATA),)
  6918. cover-report:
  6919. else
  6920. # Modules which include eunit.hrl always contain one line without coverage
  6921. # because eunit defines test/0 which is never called. We compensate for this.
  6922. EUNIT_HRL_MODS = $(subst $(space),$(comma),$(shell \
  6923. grep -H -e '^\s*-include.*include/eunit\.hrl"' src/*.erl \
  6924. | sed "s/^src\/\(.*\)\.erl:.*/'\1'/" | uniq))
  6925. define cover_report.erl
  6926. $(foreach f,$(COVERDATA),cover:import("$(f)") == ok orelse halt(1),)
  6927. Ms = cover:imported_modules(),
  6928. [cover:analyse_to_file(M, "$(COVER_REPORT_DIR)/" ++ atom_to_list(M)
  6929. ++ ".COVER.html", [html]) || M <- Ms],
  6930. Report = [begin {ok, R} = cover:analyse(M, module), R end || M <- Ms],
  6931. EunitHrlMods = [$(EUNIT_HRL_MODS)],
  6932. Report1 = [{M, {Y, case lists:member(M, EunitHrlMods) of
  6933. true -> N - 1; false -> N end}} || {M, {Y, N}} <- Report],
  6934. TotalY = lists:sum([Y || {_, {Y, _}} <- Report1]),
  6935. TotalN = lists:sum([N || {_, {_, N}} <- Report1]),
  6936. Perc = fun(Y, N) -> case Y + N of 0 -> 100; S -> round(100 * Y / S) end end,
  6937. TotalPerc = Perc(TotalY, TotalN),
  6938. {ok, F} = file:open("$(COVER_REPORT_DIR)/index.html", [write]),
  6939. io:format(F, "<!DOCTYPE html><html>~n"
  6940. "<head><meta charset=\"UTF-8\">~n"
  6941. "<title>Coverage report</title></head>~n"
  6942. "<body>~n", []),
  6943. io:format(F, "<h1>Coverage</h1>~n<p>Total: ~p%</p>~n", [TotalPerc]),
  6944. io:format(F, "<table><tr><th>Module</th><th>Coverage</th></tr>~n", []),
  6945. [io:format(F, "<tr><td><a href=\"~p.COVER.html\">~p</a></td>"
  6946. "<td>~p%</td></tr>~n",
  6947. [M, M, Perc(Y, N)]) || {M, {Y, N}} <- Report1],
  6948. How = "$(subst $(space),$(comma)$(space),$(basename $(COVERDATA)))",
  6949. Date = "$(shell date -u "+%Y-%m-%dT%H:%M:%SZ")",
  6950. io:format(F, "</table>~n"
  6951. "<p>Generated using ~s and erlang.mk on ~s.</p>~n"
  6952. "</body></html>", [How, Date]),
  6953. halt().
  6954. endef
  6955. cover-report:
  6956. $(verbose) mkdir -p $(COVER_REPORT_DIR)
  6957. $(gen_verbose) $(call erlang,$(cover_report.erl))
  6958. endif
  6959. endif # ifneq ($(COVER_REPORT_DIR),)
  6960. # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
  6961. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6962. .PHONY: sfx
  6963. ifdef RELX_REL
  6964. ifdef SFX
  6965. # Configuration.
  6966. SFX_ARCHIVE ?= $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/$(RELX_REL_NAME)-$(RELX_REL_VSN).tar.gz
  6967. SFX_OUTPUT_FILE ?= $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME).run
  6968. # Core targets.
  6969. rel:: sfx
  6970. # Plugin-specific targets.
  6971. define sfx_stub
  6972. #!/bin/sh
  6973. TMPDIR=`mktemp -d`
  6974. ARCHIVE=`awk '/^__ARCHIVE_BELOW__$$/ {print NR + 1; exit 0;}' $$0`
  6975. FILENAME=$$(basename $$0)
  6976. REL=$${FILENAME%.*}
  6977. tail -n+$$ARCHIVE $$0 | tar -xzf - -C $$TMPDIR
  6978. $$TMPDIR/bin/$$REL console
  6979. RET=$$?
  6980. rm -rf $$TMPDIR
  6981. exit $$RET
  6982. __ARCHIVE_BELOW__
  6983. endef
  6984. sfx:
  6985. $(verbose) $(call core_render,sfx_stub,$(SFX_OUTPUT_FILE))
  6986. $(gen_verbose) cat $(SFX_ARCHIVE) >> $(SFX_OUTPUT_FILE)
  6987. $(verbose) chmod +x $(SFX_OUTPUT_FILE)
  6988. endif
  6989. endif
  6990. # Copyright (c) 2013-2017, Loïc Hoguin <essen@ninenines.eu>
  6991. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6992. # External plugins.
  6993. DEP_PLUGINS ?=
  6994. $(foreach p,$(DEP_PLUGINS),\
  6995. $(eval $(if $(findstring /,$p),\
  6996. $(call core_dep_plugin,$p,$(firstword $(subst /, ,$p))),\
  6997. $(call core_dep_plugin,$p/plugins.mk,$p))))
  6998. help:: help-plugins
  6999. help-plugins::
  7000. $(verbose) :
  7001. # Copyright (c) 2013-2015, Loïc Hoguin <essen@ninenines.eu>
  7002. # Copyright (c) 2015-2016, Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com>
  7003. # This file is part of erlang.mk and subject to the terms of the ISC License.
  7004. # Fetch dependencies recursively (without building them).
  7005. .PHONY: fetch-deps fetch-doc-deps fetch-rel-deps fetch-test-deps \
  7006. fetch-shell-deps
  7007. .PHONY: $(ERLANG_MK_RECURSIVE_DEPS_LIST) \
  7008. $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) \
  7009. $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) \
  7010. $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \
  7011. $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST)
  7012. fetch-deps: $(ERLANG_MK_RECURSIVE_DEPS_LIST)
  7013. fetch-doc-deps: $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST)
  7014. fetch-rel-deps: $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST)
  7015. fetch-test-deps: $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST)
  7016. fetch-shell-deps: $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST)
  7017. ifneq ($(SKIP_DEPS),)
  7018. $(ERLANG_MK_RECURSIVE_DEPS_LIST) \
  7019. $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) \
  7020. $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) \
  7021. $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \
  7022. $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST):
  7023. $(verbose) :> $@
  7024. else
  7025. # By default, we fetch "normal" dependencies. They are also included no
  7026. # matter the type of requested dependencies.
  7027. #
  7028. # $(ALL_DEPS_DIRS) includes $(BUILD_DEPS).
  7029. $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS)
  7030. $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_DOC_DEPS_DIRS)
  7031. $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_REL_DEPS_DIRS)
  7032. $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_TEST_DEPS_DIRS)
  7033. $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_SHELL_DEPS_DIRS)
  7034. # Allow to use fetch-deps and $(DEP_TYPES) to fetch multiple types of
  7035. # dependencies with a single target.
  7036. ifneq ($(filter doc,$(DEP_TYPES)),)
  7037. $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_DOC_DEPS_DIRS)
  7038. endif
  7039. ifneq ($(filter rel,$(DEP_TYPES)),)
  7040. $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_REL_DEPS_DIRS)
  7041. endif
  7042. ifneq ($(filter test,$(DEP_TYPES)),)
  7043. $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_TEST_DEPS_DIRS)
  7044. endif
  7045. ifneq ($(filter shell,$(DEP_TYPES)),)
  7046. $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_SHELL_DEPS_DIRS)
  7047. endif
  7048. ERLANG_MK_RECURSIVE_TMP_LIST := $(abspath $(ERLANG_MK_TMP)/recursive-tmp-deps-$(shell echo $$PPID).log)
  7049. $(ERLANG_MK_RECURSIVE_DEPS_LIST) \
  7050. $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) \
  7051. $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) \
  7052. $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \
  7053. $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST): | $(ERLANG_MK_TMP)
  7054. ifeq ($(IS_APP)$(IS_DEP),)
  7055. $(verbose) rm -f $(ERLANG_MK_RECURSIVE_TMP_LIST)
  7056. endif
  7057. $(verbose) touch $(ERLANG_MK_RECURSIVE_TMP_LIST)
  7058. $(verbose) set -e; for dep in $^ ; do \
  7059. if ! grep -qs ^$$dep$$ $(ERLANG_MK_RECURSIVE_TMP_LIST); then \
  7060. echo $$dep >> $(ERLANG_MK_RECURSIVE_TMP_LIST); \
  7061. if grep -qs -E "^[[:blank:]]*include[[:blank:]]+(erlang\.mk|.*/erlang\.mk|.*ERLANG_MK_FILENAME.*)$$" \
  7062. $$dep/GNUmakefile $$dep/makefile $$dep/Makefile; then \
  7063. $(MAKE) -C $$dep fetch-deps \
  7064. IS_DEP=1 \
  7065. ERLANG_MK_RECURSIVE_TMP_LIST=$(ERLANG_MK_RECURSIVE_TMP_LIST); \
  7066. fi \
  7067. fi \
  7068. done
  7069. ifeq ($(IS_APP)$(IS_DEP),)
  7070. $(verbose) sort < $(ERLANG_MK_RECURSIVE_TMP_LIST) | \
  7071. uniq > $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted
  7072. $(verbose) cmp -s $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted $@ \
  7073. || mv $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted $@
  7074. $(verbose) rm -f $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted
  7075. $(verbose) rm $(ERLANG_MK_RECURSIVE_TMP_LIST)
  7076. endif
  7077. endif # ifneq ($(SKIP_DEPS),)
  7078. # List dependencies recursively.
  7079. .PHONY: list-deps list-doc-deps list-rel-deps list-test-deps \
  7080. list-shell-deps
  7081. list-deps: $(ERLANG_MK_RECURSIVE_DEPS_LIST)
  7082. list-doc-deps: $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST)
  7083. list-rel-deps: $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST)
  7084. list-test-deps: $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST)
  7085. list-shell-deps: $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST)
  7086. list-deps list-doc-deps list-rel-deps list-test-deps list-shell-deps:
  7087. $(verbose) cat $^
  7088. # Query dependencies recursively.
  7089. .PHONY: query-deps query-doc-deps query-rel-deps query-test-deps \
  7090. query-shell-deps
  7091. QUERY ?= name fetch_method repo version
  7092. define query_target
  7093. $(1): $(2) clean-tmp-query.log
  7094. ifeq ($(IS_APP)$(IS_DEP),)
  7095. $(verbose) rm -f $(4)
  7096. endif
  7097. $(verbose) $(foreach dep,$(3),\
  7098. echo $(PROJECT): $(foreach q,$(QUERY),$(call query_$(q),$(dep))) >> $(4) ;)
  7099. $(if $(filter-out query-deps,$(1)),,\
  7100. $(verbose) set -e; for dep in $(3) ; do \
  7101. if grep -qs ^$$$$dep$$$$ $(ERLANG_MK_TMP)/query.log; then \
  7102. :; \
  7103. else \
  7104. echo $$$$dep >> $(ERLANG_MK_TMP)/query.log; \
  7105. $(MAKE) -C $(DEPS_DIR)/$$$$dep $$@ QUERY="$(QUERY)" IS_DEP=1 || true; \
  7106. fi \
  7107. done)
  7108. ifeq ($(IS_APP)$(IS_DEP),)
  7109. $(verbose) touch $(4)
  7110. $(verbose) cat $(4)
  7111. endif
  7112. endef
  7113. clean-tmp-query.log:
  7114. ifeq ($(IS_DEP),)
  7115. $(verbose) rm -f $(ERLANG_MK_TMP)/query.log
  7116. endif
  7117. $(eval $(call query_target,query-deps,$(ERLANG_MK_RECURSIVE_DEPS_LIST),$(BUILD_DEPS) $(DEPS),$(ERLANG_MK_QUERY_DEPS_FILE)))
  7118. $(eval $(call query_target,query-doc-deps,$(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST),$(DOC_DEPS),$(ERLANG_MK_QUERY_DOC_DEPS_FILE)))
  7119. $(eval $(call query_target,query-rel-deps,$(ERLANG_MK_RECURSIVE_REL_DEPS_LIST),$(REL_DEPS),$(ERLANG_MK_QUERY_REL_DEPS_FILE)))
  7120. $(eval $(call query_target,query-test-deps,$(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST),$(TEST_DEPS),$(ERLANG_MK_QUERY_TEST_DEPS_FILE)))
  7121. $(eval $(call query_target,query-shell-deps,$(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST),$(SHELL_DEPS),$(ERLANG_MK_QUERY_SHELL_DEPS_FILE)))